Decimal() instead of float?
steve at REMOVE.THIS.cybersource.com.au
Sun Nov 12 03:08:32 CET 2006
On Sun, 12 Nov 2006 02:31:04 +0100, Fredrik Lundh wrote:
>> For example, I have a ZIP code
>> database that can do some processing on its numbers, and the numbers are
>> stored as floating point values (exactly) but Python doesn't get them
> sounds odd. are you sure you don't mean "stored as strings containing
> decimal numbers" ?
> (who uses fractional ZIP codes, btw?)
Well, I can't speak for Americans, but here in Australia we typically give
our post codes to six decimal places:
Clifton Hill 3068.000000
St Johns Park 2176.000000
and so forth. You can't have too much precision with those floating point
More information about the Python-list