Money data type

Batista, Facundo FBatista at uniFON.com.ar
Thu Sep 18 10:13:09 EDT 2003


#- Batista,
#- 
#- I know some old systems do allow arbitrary precision 
#- decimals, but Python 
#- doesn't have any.  What's the problem with floating point, 
#- that makes it 
#- unusable for you?  As far as I can see, it *IS* only when 
#- you come to print 
#- that it matters.  With arbitrary precision, you are likely 
#- to get more 
#- rounding errors.  Can you explain *why* the /storage/ of 
#- digits is so 
#- important ?

Are you trying to tell me that if I work always with float, and in the final
step (reaching the user's eyes or check in the printer) I "represent" it
with str (for example) or with "%.5f", I get no rounding errors?

If you are, I will believe you! (even "feeling" other way, but can not prove
it).

.	Facundo





. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . .
ADVERTENCIA  

La información contenida en este mensaje y cualquier archivo anexo al mismo,
son para uso exclusivo del destinatario y pueden contener información
confidencial o propietaria, cuya divulgación es sancionada por la ley. 

Si Ud. No es uno de los destinatarios consignados o la persona responsable
de hacer llegar este mensaje a los destinatarios consignados, no está
autorizado a divulgar, copiar, distribuir o retener información (o parte de
ella) contenida en este mensaje. Por favor notifíquenos respondiendo al
remitente, borre el mensaje original y borre las copias (impresas o grabadas
en cualquier medio magnético) que pueda haber realizado del mismo. 

Todas las opiniones contenidas en este mail son propias del autor del
mensaje y no necesariamente coinciden con las de Telefónica Comunicaciones
Personales S.A. o alguna empresa asociada. 

Los mensajes electrónicos pueden ser alterados, motivo por el cual
Telefónica Comunicaciones Personales S.A. no aceptará ninguna obligación
cualquiera sea el resultante de este mensaje. 

Muchas Gracias.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20030918/32575c72/attachment.html>


More information about the Python-list mailing list