<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jun 6, 2015 at 7:44 PM, Max <span dir="ltr"><<a href="mailto:abonnements@revolwear.com" target="_blank">abonnements@revolwear.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
I'm trying to get [pow 2] from -0.019022952498528478.<br>
because it is negative, [pow 2] will just return 0 unfortunately.<br>
IOhannes suggested in a thread from 2013 to use<br>
[expr pow($f1, 2)] instead.<br>
This returns 0.000361872<br>
<br>
however, in Python and my on-screen pocket calculator I get<br>
- -0.019022952498528478**2<br>
- -0.0003618727217612709<br>
<br>
so apart from the 32 bit float, shouldn't the result be negative?<br></blockquote><div>As far as the math is concerned, when you multiply two negative numbers, you get a positive, right? why expect a negative then? Maybe I'm missing something obvious here, dunno... <br></div></div></div></div>