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.
In reply to Re^2: float values and operators
by hardburn
in thread float values and operators
by soulchild
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |