Re: Arithmetic issues John.Cowan 19 Oct 2005 18:21 UTC

Aubrey Jaffer scripsit:

> In twos-complement fixnums there is one more negative number than
> there are positive numbers.
>
> Thus (abs most-negative-fixnum) and (- most-negative-fixnum) can only
> return a bignum: (+ 1 most-positive-fixnum)

Ah.  However, I favor signaling fixnum operations, in which case (fxabs
smallest-fixnum) should signal an error.

--
You're a brave man! Go and break through the            John Cowan
lines, and remember while you're out there              xxxxxx@reutershealth.com
risking life and limb through shot and shell,           www.ccil.org/~cowan
we'll be in here thinking what a sucker you are!        www.reutershealth.com
        --Rufus T. Firefly