PEP 327: Decimal Data Type

Batista, Facundo FBatista at uniFON.com.ar
Tue Feb 3 07:33:26 EST 2004


cookedm wrote:

#- What we need for this is an interval type. 1.80 m shouldn't be stored
#- as '1.80', but as '1.80 +/- 0.005', and operations such as addition
#- and multiplication should propogate the intervals.

I think this kind of math is beyond a pure numeric data type. 1.80 is to be
represented as a numeric data type. And also 0.005. 

But '1.80 +/- 0.005' should be worked in another object. Hey! These are the
benefits of OOP!

.	Facundo




More information about the Python-list mailing list