Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: 0.123, float or integer

by chipmunk (Parson)
on Feb 06, 2002 at 05:56 UTC ( #143561=note: print w/ replies, xml ) Need Help??


in reply to 0.123, float or integer

It sounds to me like you have a bug in your code. Since you haven't shown us your code, I can't be more specific than that. As a guess, perhaps when you use substr you're truncating the number. Perl certainly has no trouble doing calculations on floating point numbers.


Comment on Re: 0.123, float or integer

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (19)
As of 2014-12-22 13:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (118 votes), past polls