in reply to Re: float values and operators
in thread float values and operators
That's what I thought, too, but it doesn't appear to be the case:
$ perl -le '$a = 36.8; $b = 36.6; print "true\n" if $a >= ($b + 0.2);' # Prints nothing, just as poster showed $ perl -le '$a = 36.8; $b = 36.6; $c = $b + 0.2; print $c;' 36.8 $ perl -le '$a = 36.8; $b = 36.6; $c = $b + 0.2; print $a;' 36.8 $ perl -le '$a = 36.8; $b = 36.6; $c = $b + 0.2; print $b;' 36.6
"There is no shame in being self-taught, only in not trying to learn in the first place." -- Atrus, Myst: The Book of D'ni.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: float values and operators
by Zaxo (Archbishop) on Aug 11, 2004 at 20:17 UTC | |
by hardburn (Abbot) on Aug 11, 2004 at 20:21 UTC | |
by dave_the_m (Monsignor) on Aug 11, 2004 at 21:11 UTC | |
by ysth (Canon) on Aug 11, 2004 at 21:56 UTC |