Prothon vs. Python integers
Mark Hahn
mark at prothon.org
Tue May 25 23:18:04 EDT 2004
Greg Ewing wrote:
>> Surely
>> once you get to 3.7e19 you are in floating point territory.
>
> Incorrect. You're only ever in floating point territory
> if you can tolerate inexact results. Some applications
> can't.
>
> Even if you don't support arbitrary-size integers, you
> should *not* automatically overflow from ints to floats.
> You should raise an exception instead. That way, people
> won't be bitten by unexpected loss of precision.
I've agreed to support longs and I'm thinking of only having longs.
More information about the Python-list
mailing list