ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> edu-sig
edu-sig
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved