Twine Q&A - Recent questions tagged sqrt
http://twinery.org/questions/tag/sqrt
Powered by Question2AnswerSqrt: and Pow: not working in Harlowe
http://twinery.org/questions/1530/sqrt-and-pow-not-working-in-harlowe
<p>I can't get the sqrt or pow macros to work.</p><p>For example</p><pre><code>(set: $num to (sqrt: 25) )</code></pre><p>Just stores a 0 in $num. No matter what I give it as input, sqrt seems to evaluate to zero.</p><p>Likewise, even though the documentation says pow should be used like (pow: 5, 2), it complains that pow only takes 1 argument. Giving it 1 argument evaluates to zero. </p><p>I've tried testing in a few different browsers and with the online and downloadable version of Twine. </p><p>I'm not sure what I am doing wrong with these functions. Any help is appreciated.</p>http://twinery.org/questions/1530/sqrt-and-pow-not-working-in-harloweSun, 10 Sep 2017 16:10:15 +0000