Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: floating point addition

by BrowserUk (Patriarch)
on Jan 12, 2015 at 16:19 UTC ( [id://1112959]=note: print w/replies, xml ) Need Help??


in reply to floating point addition

May be this will give you a clue:

[0] Perl> printf "%20.17f\n", 20.1;; 20.10000000000000100

Then read:Re: Re: Re: Bug? 1+1 != 2.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice. Agile (and TDD) debunked

Replies are listed 'Best First'.
Re^2: floating point addition
by kresike (Initiate) on Jan 12, 2015 at 16:40 UTC
    Yeah, it never occurred to me to check that. Thanks.

Log In?
Username:
Password:

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

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

    No recent polls found