Paul Kislanko - 2015-06-12

Y is not "much" different from x - the percent difference is a little over 2.6E-08.

The real bug is x being expressed in fewer than DIGITS() significant figures, and it's stored that way since x+0 evaluates to 957186876000.

Interestnig that

x = h**5

and

x = h**5+0

evaluate to different results. Something about being involved in a more complicated expression makes ** behave correctly!

And this shows that it is definitely in the '**' function:

say pi
3.1415926535897932384626433832795028841971693993751

numeric digits 20

say pi**2
9.86960440

say pi**2+0
9.8696044010893586188

 

Last edit: Paul Kislanko 2015-06-12