Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re (tilly) 5: A C-like brain in a Perl-like world

by tilly (Archbishop)
on Sep 27, 2001 at 07:24 UTC ( [id://114985]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: Re: A C-like brain in a Perl-like world
in thread A C-like brain in a Perl-like world

You need to do one of the following to make that work:
perl -e 'print "I cannot add" unless 19.08 + 2.01 == 21.09' perl -e 'print "I can'\''t add" unless 19.08 + 2.01 == 21.09'
BTW as Re: Strange (rounding?) problem points out, Perl often handles floats better if you use eq instead of == for testing equality...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2024-03-28 10:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found