|
|
| Do you know where your variables are? | |
| PerlMonks |
Re: 0.123, float or integerby chipmunk (Parson) |
| on Feb 06, 2002 at 05:56 UTC ( #143561=note: print w/ replies, xml ) | Need Help?? |
|
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.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||