How on Factorial

Xavier Ho contact at xavierho.com
Thu Oct 28 16:01:22 CEST 2010


On 28 October 2010 23:52, Dave Angel <davea at ieee.org> wrote:

> The ~- trick only works on two's complement numbers.  I've worked on
> machines in the past that used one's complement, and this wouldn't work
> there.
>
> DaveA
>

I imagine this wouldn't work on floating point numbers either.

Cheers,
Xav
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20101029/d84dcbd1/attachment.html>


More information about the Python-list mailing list