Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re^3: Reading wrong value from excel sheet

by space_monk (Chaplain)
on May 20, 2013 at 20:10 UTC ( #1034398=note: print w/replies, xml ) Need Help??

in reply to Re^2: Reading wrong value from excel sheet
in thread Reading wrong value from excel sheet

Your calculations will still round up if you accept 5 or 6 decimal places, From your examples It is only the least significant bit at 14-15dp or so that is causing the problem

1.139999999999999 will round up to 1.14 at anything up to 14dp (if I've counted correctly)

If you spot any bugs in my solutions, it's because I've deliberately left them in as an exercise for the reader! :-)
  • Comment on Re^3: Reading wrong value from excel sheet

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1034398]
[LanX]: auto-subtitles in YT are entertaining: "fuehrer" instead of fewer, "jews" instead of juice ...
Discipulus never noticed there was subtitles... can I call them with &subtitle or is too much perl 4?
[LanX]: YT=youtube
[Discipulus]: ;=) yes i'm not SO dumb
[LanX]: SO=StackOverflow

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2017-06-23 16:36 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (552 votes). Check out past polls.