Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Re: Re: 0.123, float or integer

by jmcnamara (Monsignor)
on Feb 06, 2002 at 10:57 UTC ( [id://143598]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: 0.123, float or integer
in thread 0.123, float or integer


Well done. That's interesting. I've been bitten by that before but not in Perl.
perl -le 'print 2 * "21.654"' # 43.308 perl -le 'print 2 * "21,654"' # 42

--
John.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-20 02:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found