Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: $var == 1 fails when $var = 1

by LanX (Saint)
on Sep 20, 2018 at 15:08 UTC ( [id://1222721]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    DB<8> printf '%.20f', 0.688 + 0.289 + 0.023
    0.99999999999999989000
    
  2. or download this
      DB<15> p 1 == (688 + 289 + 23) /1000
    1
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2024-04-23 10:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found