Money data type

Batista, Facundo FBatista at uniFON.com.ar
Wed Sep 17 20:28:34 CEST 2003


Can't find it.

I mean something like:

>> m1 = Money(decimal=2)
>> m2 = Money(decimal=2)
>> m1.value = 3.20
>> m2.value = 2.15
>> print m1 + m2
5.35

5.35! Not 5.3500000000000001 neither 5.34999999999999999999.

I think this is not a rare thing, but I can't find it in the standar library
neither the package index.

Thanks!

.	Facundo





More information about the Python-list mailing list