Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: expected 0 not result gotten

by quester (Vicar)
on Dec 22, 2011 at 06:40 UTC ( #944728=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    perl -e 'print ((.0425*2) + .0025 ) - ((.0425*2) + .0025 ); print $/;'
    
  2. or download this
    $ perl -we 'print ((.0425*2) + .0025 ) - ((.0425*2) + .0025 ); print $
    +/;'
    print (...) interpreted as function at -e line 1.
    Useless use of subtraction (-) in void context at -e line 1.
    0.0875
    
  3. or download this
    $ perl -we 'print (((.0425*2) + .0025 ) - ((.0425*2) + .0025 )); print
    + $/;'
    0
    
    $ perl -we 'print +((.0425*2) + .0025 ) - ((.0425*2) + .0025 ); print 
    +$/;'
    0
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2014-04-20 08:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (485 votes), past polls