Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: int() function

by ikegami (Pope)
on Oct 27, 2020 at 10:43 UTC ( #11123199=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl -e'CORE::say sprintf("%.100f", 0.15) =~ s/0+\z//r'
    0.1499999999999999944488848768742172978818416595458984375
    
    $ perl -e'CORE::say sprintf("%.100f", (1.15*170)+0.50) =~ s/0+\z//r'
    195.999999999999971578290569595992565155029296875
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2021-04-23 01:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?