Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^5: Integers sometimes turn into Reals after substraction (printed accuracy and float subtraction)

by LanX (Saint)
on May 14, 2016 at 14:00 UTC ( [id://1163032]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1163032]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2024-04-25 07:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found