[Spambayes-checkins] spambayes/Outlook2000/dialogs AsyncDialog.py,
1.5, 1.6
Tim Peters
tim.one at comcast.net
Tue Jul 22 12:05:29 EDT 2003
> Modified Files:
> AsyncDialog.py
> Log Message:
> %g is pretty useless - use %r instead.
Alas, it won't help much. %g would have displayed any difference from 1.0
up to the sixth significant digit:
>>> "%g" % 1.000001 # difference in 7th digit suppressed
'1'
>>> "%g" % 1.00001 # difference in 6th digit survives
'1.00001'
>>>
So if %g displayed "1", the true number is certainly less than 0.001 away
from 1.0.
%r will tell us more, of course, but I'm afraid it will only tell us there
are more zeroes at the end.
So I remain baffled. Maybe abs() is broken on the OP's box?! "<"? The
mind boggles.
More information about the Spambayes-checkins
mailing list