Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^4: While loop with addition goes weird (binary float rounding error)

by Anonymous Monk
on Apr 13, 2018 at 19:50 UTC ( [id://1212831]=note: print w/replies, xml ) Need Help??


in reply to Re^3: While loop with addition goes weird (binary float rounding error)
in thread While loop with addition goes weird

These might be more digestible (not 67 pages article) :) Is this odd behavior a floating point problem?, What Every Programmer Should Know About Floating-Point Arithmetic or Why don’t my numbers add up?

Replies are listed 'Best First'.
Re^5: While loop with addition goes weird (binary float rounding error)
by BillKSmith (Monsignor) on Apr 14, 2018 at 13:08 UTC
    The OP probably has the same off-by-one error as your second reference. The floating-point accuracy issue clearly applies to the current question.
    Bill

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-03-28 23:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found