factorial of negative one (-1)
Lawrence D'Oliveiro
ldo at geek-central.gen.new_zealand
Mon Nov 1 23:21:42 EDT 2010
In message <87r5f55qj5.fsf at xemacs.org>, Hrvoje Niksic wrote:
> Python has a little-known but very instructive method for determining the
> makeup of a float:
>
>>>> 1.1 .as_integer_ratio()
> (2476979795053773, 2251799813685248)
Only available in 2.6 or later. Are we already talking as though 2.5 doesn’t
exist any more? I still have client machines running that (Debian Stable
5.0). :)
More information about the Python-list
mailing list