Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^3: int() function

by syphilis (Bishop)
on Oct 25, 2020 at 00:46 UTC ( #11123143=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    C:\_32>perl -MTest::More -le "cmp_ok(0.14, '==', 1.4 / 10, '0.14 == 1.
    +4/10'); done
    _testing();"
    ...
    #     expected: 0.14
    1..1
    # Looks like you failed 1 test of 1.
    
  2. or download this
    C:\>perl -MMath::MPFR="nvtoa" -le "print nvtoa(0.14);print nvtoa(1.4 /
    + 10);"
    0.14
    0.13999999999999999
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2021-04-22 15:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?