Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: NV/IV Bug ?

by Elian (Parson)
on Feb 27, 2003 at 18:42 UTC ( [id://239199]=note: print w/replies, xml ) Need Help??


in reply to NV/IV Bug ?

Why are you thinking that it's surprising? Floats can't represent anything that isn't a fraction of two (1/2, 1/4, 1/8, and so on) so since you've chosen a number that's unrepresentable, you're going to get bad results.

Just one more good reason to not use IEEE floating point numbers to represent money...

Replies are listed 'Best First'.
Re: Re: NV/IV Bug ?
by MZSanford (Curate) on Feb 27, 2003 at 18:48 UTC
    good point. Hence the *100 being used on the string which was read from a file.
    from the frivolous to the serious

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (4)
As of 2024-04-24 12:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found