Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Funny addition behaviour

by Theo (Priest)
on Apr 22, 2004 at 23:55 UTC ( #347504=note: print w/ replies, xml ) Need Help??


in reply to Funny addition behaviour

I don't have a system to test this on, but what happens if you scale all the number up by a factor of 10?

perl -e 'print "CRAP\n" if ((334+333+333)/10 != 100)'
In other words, can you get around the problem by not dealing with decimals?

-Theo-
(so many nodes and so little time ... )


Comment on Re: Funny addition behaviour
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (14)
As of 2015-07-06 19:56 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 (81 votes), past polls