develooper Front page | perl.perl5.porters | Postings from July 2001

Re: [DOC PATCH bleadperl] detypo Math::BigInt docs

Thread Previous | Thread Next
From:
John Peacock
Date:
July 10, 2001 12:55
Subject:
Re: [DOC PATCH bleadperl] detypo Math::BigInt docs
Message ID:
3B4B5CE5.5DA90EE8@rowman.com
Philip Newton wrote:
> 
> On 10 Jul 01, at 19:09, Tels wrote:
> 
> 
> > [0] What is the sign made by a division by zero, if no-one looks?
> 
> A positive or a negative zero? ;-)
> 

I would certainly argue that the signs should be dealt with separate
from the division (like everything else is done in M::BI::Calc).  If
the numerator is negative, then num/0 is -inf, else +inf.  0 cannot 
ever be positive or negative by itself (that is truly the definition 
of positive {>0} and negative {<0} ).  Therefore 0/0==0 is a sensible 
default (since 0/num == 0 for all other num).

My 2 cents

John

--
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4720 Boston Way
Lanham, MD 20706
301-459-3366 x.5010
fax 301-429-5747

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About