[Spambayes-checkins] spambayes/Outlook2000/dialogs AsyncDialog.py,
1.4, 1.5
Tony Meyer
ta-meyer at ihug.co.nz
Mon Jul 21 16:00:12 EDT 2003
> > Because 1.0 becomes 10,
>
> In what locale would a period be interpreted as "multiply the
> integer to the left of the period by 10"?
It doesn't seem to multiply, just ignore the '.'. For example:
>>> locale.setlocale(locale.LC_NUMERIC, "German")
'German_Germany.1252'
>>> s = locale.atof("3,14")
>>> s
3.1400000000000001
>>> s = locale.atof("3.14")
>>> s
314.0
>>>
Back when I was playing around with locale settings & Outlook to try and
sort out the problems there, I noticed this behaviour in code without the
locale.atof calls as well. I can't remember how to reproduce it now, though
;) classifier.LN2 kept ending up as >0, though, and the call there is just
"LN2 = math.log(2)".
=Tony Meyer
More information about the Spambayes-checkins
mailing list