On Thursday, May 30, 2002, at 03:01 , Bryan R Harris wrote:

>
> Quick question...  Why doesn't this print?
>
>   print "Yep, it is.\n" if -0.40-0.200>=-0.6;
>
> - B

[jeeves:~/tmp/Junk] drieux% perl -e 'my $var = (-0.40 - 0.200); my $var2 = 
"-0.6"; my $var3 = $var - $var2; print ":$var3:";'
:-1.11022302462516e-16:[jeeves:~/tmp/Junk] drieux%

does the phrase 'floating point rounding error' bring anything to mind?

ciao
drieux

---


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to