Re: Divide by Zero

Ryan Heath <[email protected]> Tue, 26 Feb 2008 10:53:19 +0100
Newsgroups gmane.comp.windows.devel.dotnet.clr
Message-ID <[email protected]>
On Tue, Feb 26, 2008 at 10:32 AM, Brady Kelly wrote:
> OK, so why can't integer have a *magic number*?  Does it's discrete nature
> rule against this?  Now I go back to discussions with school maths teachers,
> but, if an integer cannot be divided by something, then surely the integer
> remains undivided, i.e. it retains its original value?
>

What is the value of (+/-)infinity? Of course we could give up the
values 0x7ffffff and 0x80000000.
But then 0x7ffffffe + 1 would be infinity...

AFAIK you cannot reach infinity (with floats, doubles) just with a
simple addition.

// Ryan

===================================
This list is hosted by DevelopMentor®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com