in reply to Re^4: Integers sometimes turn into Reals after substraction (printed accuracy and float subtraction)
in thread Integers sometimes turn into Reals after substraction

> (1000*4/25) would still be an integer, an IV

Doesn't seem so:

$ perl -MDevel::Peek -e '$x=(4000/25); Dump($x)' SV = NV(0x9f2f570) at 0x9f286d8 REFCNT = 1 FLAGS = (NOK,pNOK) NV = 160

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!

  • Comment on Re^5: Integers sometimes turn into Reals after substraction (printed accuracy and float subtraction)
  • Download Code