Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: expected 0 not result gotten

by Anonymous Monk
on Dec 27, 2011 at 09:27 UTC ( #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
Node Status?
node history
Node Type: note [id://945161]
help
Chatterbox?
LanX for they know not what they do ...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (11)
As of 2017-10-20 11:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (261 votes). Check out past polls.

    Notices?