prePEP: Decimal data type
Batista, Facundo
FBatista at uniFON.com.ar
Tue Nov 4 12:16:05 EST 2003
Emile van Sebille wrote:
#- > 3. To exist a Context. The context represents the user-selectable
#- > parameters
#- > and rules which govern the results of arithmetic
#- operations. In the
#- > context the user defines:
#- >
#- > - what will happen with the exceptional conditions.
#- > - what precision will be used
#- > - what rounding method will be used
#- >
#- > 4. The Context must be omnipresent, meaning that changes
#- to it affects all
#- > the current and future Decimal instances.
#-
#- Does this imply then that there is unlimited precision being
#- maintained
#- under the covers?
No, why?
Under the cover you got:
- sign
- coefficient (just several decimal digits, fixed in quantity)
- exponent
. Facundo
More information about the Python-list
mailing list