Using fractions instead of floats

Steven D'Aprano steve at REMOVE-THIS-cybersource.com.au
Thu Oct 4 19:19:56 EDT 2007


On Thu, 04 Oct 2007 02:47:27 -0700, Paul Rubin wrote:

> Steven D'Aprano <steve at REMOVE-THIS-cybersource.com.au> writes:
>> > implementation in pure Python).  Finally, arithmetic would become
>> > very confusing if there were three distinct numeric types; it already
>> > causes enough confusion with two!
> 
> There's already ints, longs, floats, complexes, and decimals.  What's
> the problem with one more?

Having different data types for different needs isn't a bug, it's a 
feature.

Besides, ints and longs are more or less the same data type now, or at 
least they are in the process of being integrated.



-- 
Steven.



More information about the Python-list mailing list