Quantcast
Channel: Help! with 2.0 - Twine Forum
Viewing all articles
Browse latest Browse all 1844

(pow:) macro is broken, takes wrong number of arguments

$
0
0
(pow:), the exponentiation macro, isn't working for me.

According to the Harlowe 1.2.2 documentation, (pow:) is supposed to take exactly two values, the base and the exponent. But when I write (pow: $w, 2.5) it doesn't evaluate. I'm told "1 too many values were given to this (pow:) macro. The (pow:) macro must only be given a number."

When I acquiesce to this nonsensical error and write (pow: $w) or (pow: 2.5), it evaluates to NaN. Of course, this is backwards. (pow:) shouldn't evaluate on one argument. You need a base and an exponent.

What is this beginner missing?

Viewing all articles
Browse latest Browse all 1844

Trending Articles