realbasic-nug
[Top] [All Lists]

Re: Bug Report? - was Re: Division by zero

To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Subject: Re: Bug Report? - was Re: Division by zero
From: Arnaud Nicolet <anic297@mac.com>
Date: Sun, 03 Aug 2008 22:20:37 +0200
Authentication-results: mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com
Delivered-to: listarchive@realsoftware.com
In-reply-to: <90E1A7C4-86F6-402F-8C1C-26250CB76788@tolisgroup.com>
References: <7D54B0A7-4499-4427-842B-DBDDEF7D9438@frontiernet.net> <p06240800c4ba417a1fa3@[10.0.1.8]> <418B1AB2-AF13-453F-A7CE-B6271578D055@inspiringapps.com> <BADDFE58-ACE8-4DB4-B434-E45E938DBE76@oxalyn.com> <B73CDE85-6C14-4320-96AB-A123C385D9F9@inspiringapps.com> <3290BE19-9439-424B-A5DC-662A62C30CBC@frontiernet.net> <4895DC57.30100@rpgportland.com> <p06240800c4bb8eb39db1@[10.0.1.8]> <AC667C70-9E78-4567-85A5-B207D099A4BC@tolisgroup.com> <1D05139C-9BFC-43BD-B2A5-6CCBE756B266@frontiernet.net> <202C32E1-479C-40E2-A456-0EF45F8D173C@comcast.net> <E9589580-732A-40F9-BCF6-7B6C099C1B15@frontiernet.net> <90E1A7C4-86F6-402F-8C1C-26250CB76788@tolisgroup.com>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com
Le 3 août 08 à 21:08 (soir), Tim Jones a écrit:

On Aug 3, 2008, at 11:30 AM, Harrie Westphal wrote:

The problem is that RB gives you a number that can be used in subsequent calculations. Hence, they are violating the consequences of a zero divide. The floating points, Single and Doubles at least print INF if displayed on the screen or paper, but even those do not stop you from doing further calculations. Just everything calculated from them, that stays a Single or Float will print INF, I believe. However, move the Double to an Int64 and you again have no indication of a problem.

While I enjoy discourse on topics like this (and I really like Fargo's note about drag chutes - hope the NHTSA doesn't see it or we'll get mandatory drag chutes in 2015...), all our chatter won't make much difference if we don't actually request a change.

We're now up to 39 messages on this and I don't see any mention of a bug report or feature request.

I also agree with Harrie in that the inconsistent manner in which RB handles this scenario between types needs to be fixed. Therefore, I've submitted a bug report based on Harrie's succinct note above.

FogBugz ID 4623 - Inconsistent numeric type value handling of divide by zero scenario

So what do you expect to happen by dividing by 0?
As other stated, dividing by zero does not make your app crashing (the computer supports doing so), so an exception is irrelevant to that case. And your resulting integer has to be something.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>