Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: Remove letters from variables used in math operation?

by eyepopslikeamosquito (Chancellor)
on Dec 08, 2012 at 22:08 UTC ( #1007932=note: print w/replies, xml ) Need Help??


in reply to Re: Remove letters from variables used in math operation?
in thread Remove letters from variables used in math operation?

While switching off warnings is OK when you are sure of the format of your data, be aware of subtle pitfalls. In particular, scientific notation. For example:

'934e' + 1; # value is 935 '934e0' + 1; # ok, value is still 935 '934e3' + 1; # oops, value is 934001 (scientific notation)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1007932]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2016-12-11 05:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (168 votes). Check out past polls.