Re: [Edu-sig] long int / long int = ??
by Kirby Urner other posts by this author
Aug 5 2001 8:53PM messages near this date
[Edu-sig] long int / long int = ??
|
re: [Edu-sig] More re: Advanced or beginner?
At 12:12 PM 8/3/2001 -0700, Brent Burley wrote:
> It has been noted that int/int=int results in more information loss than
> int/int=float. Based on this, it has been proposed that
> anything/anything return float. This got me wondering about long ints.
I don't think the problem is with the information loss, but
the fact that this leak of information might easily occur
when not intended or expected.
A rational numbers type might be appealing though, as part
of the primitive language. Currently, lots of optional
modules give you rationals (heck, I've written one myself),
and/or even decimals of quasi-unlimited precision.
Kirby
_______________________________________________
Edu-sig mailing list
Edu-sig@[...].org
http://mail.python.org/mailman/listinfo/edu-sig
Thread:
Brent Burley
Kirby Urner
|