Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: NV/IV Bug ?

by extremely (Priest)
on Feb 27, 2003 at 18:48 UTC ( #239203=note: print w/ replies, xml ) Need Help??


in reply to NV/IV Bug ?

1.15 in binary is... ooops, an infinite series. There is special magic in place for what is basically 1.1499999999999 when multiplied and printed. But when you you force to int(), you dodge that magic and get the proper truncated value.

--
$you = new YOU;
honk() if $you->love(perl)


Comment on Re: NV/IV Bug ?
Replies are listed 'Best First'.
Re: Re: NV/IV Bug ?
by MZSanford (Curate) on Feb 27, 2003 at 18:52 UTC
    Thanks, that explains. Inconsistant (by design) Magic application. If neither worked, i would not have posted ... i do understand floating point numbers, but the inconsistancy was bothering me. Thanks again.
    from the frivolous to the serious

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (9)
As of 2015-07-29 02:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (260 votes), past polls