[Edu-sig] long int / long int = ??

Kirby Urner pdx4d@teleport.com
Sun, 05 Aug 2001 13:53:56 -0700


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