Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: expected 0 not result gotten

by Anonymous Monk
on Dec 27, 2011 at 09:27 UTC ( [id://945161]=note: print w/replies, xml ) Need Help??


in reply to Re: expected 0 not result gotten
in thread expected 0 not result gotten

surprising but true, i get something like, $ perl -we 'my $x = (.0425 * 2) + .0025; print $x - (.042+5 * 2) - .0025, $/;' -9.957 i am using perl 5.8.8

Replies are listed 'Best First'.
Re^3: expected 0 not result gotten
by quester (Vicar) on Dec 28, 2011 at 06:40 UTC

    Do you mean that it surprises you that

    .0425*2
    

    is different than

    .042+5*2
    

    Um... wow... really?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://945161]
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-04-19 11:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found