mr.nick has asked for the wisdom of the Perl Monks concerning the following question:
-output- 46 45
Thanks as this has been driving me crazy! (And I have this horrible feeling I'm doing something crazy-stupid :) (btw, perl 5.005_03 on Solaris)-code snippet- $foo= 44123.2000 / 959.2; print "$foo\n"; print int($foo),"\n";
mr.nick ...
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Why do these produce different values?
by ikegami (Patriarch) on Jan 25, 2006 at 20:20 UTC | |
Re: Why do these produce different values?
by Roy Johnson (Monsignor) on Jan 25, 2006 at 20:07 UTC | |
Re: Why do these produce different values?
by davido (Cardinal) on Jan 25, 2006 at 21:11 UTC | |
Re: Why do these produce different values?
by Aristotle (Chancellor) on Jan 25, 2006 at 20:34 UTC | |
Re: Why do these produce different values?
by GrandFather (Saint) on Jan 26, 2006 at 03:19 UTC |