ANN: Experimental Number Types (Integer, Rational, Floats)

Carlos Ribeiro cribeiro at mail.inet.com.br
Sat Apr 21 17:41:25 EDT 2001


At 16:02 20/04/01 +0200, M.-A. Lemburg wrote:
>That would be a new Decimal type then :-) (which is actually what I'm
>after, since I need them for database interfacing)

So that's a good way to solve both problems. Rationals can be made in a 
unambiguous way from decimals, but not from floats. Making rationals of 
floats is not a good idea. The conversion from floats has another problem 
as well: it conveys a wrong notion that is ok to do it.


Carlos Ribeiro






More information about the Python-list mailing list