Boost logo

Boost :

Subject: Re: [boost] New Boost.XInt Library, request preliminary review
From: Scott McMurray (me22.ca+boost_at_[hidden])
Date: 2010-03-29 21:09:04


On 29 March 2010 21:04, Chad Nelson <chad.thecomfychair_at_[hidden]> wrote:
>
> Close, but not quite: the inverse of zero is zero.
>

Uh, what? I thought that the point of an inverse is that
multiplication gives 1 -- that's certainly what I read at
http://en.wikipedia.org/wiki/Modular_multiplicative_inverse

Wouldn't the modulo inverse of 0 be a NaN just like the result of 1/0?


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk