[Python-Dev] Decimal data type issues

Batista, Facundo FBatista at uniFON.com.ar
Wed Apr 14 17:53:19 EDT 2004


[Aahz]

#- > Exponent Maximum
#- > ----------------
#- > 
#- > The Decimal number composes of three elements: A sign that 
#- can be 0 or 1, a
#- > tuple of digits where each can be 0..9, and an exponent. 
#- > 
#- > The exponent is an integer, and in the actual 
#- implementation exists a
#- > maximum
#- > value::
#- > 
#- > DEFAULT_MAX_EXPONENT = 999999999
#- > DEFAULT_MIN_EXPONENT = -999999999
#- > ABSOLUTE_MAX_EXP = 999999999
#- > ABSOLUTE_MIN_EXP = -999999999
#- > 
#- > The issue is that this limit is artificial: As long it's a 
#- long, you should
#- > be able to make it as big as your memory let you.
#- 
#- As long as it's in Python code, it's easy enough for a 
#- whiner to modify
#- it.  Leave it as-is.  Other than that, I agree with Tim.

That means that I should let the limit be, because can be easily modified? 

If I don't put the limit, nobody will need to modify it, :)

.	Facundo



More information about the Python-Dev mailing list