[Chicago-talk] Weird math

Jay Strauss me at heyjay.com
Sat Oct 25 12:13:26 CDT 2003


>cat ./t

#!/usr/bin/perl

$v = 115/100 - 1;
print $v,"\n";
print $v - .05,"\n";

>./t
0.15
0.0999999999999999

What's up with that?





More information about the Chicago-talk mailing list