Floating numbers

Mark Dickinson dickinsm at gmail.com
Fri Aug 13 11:43:24 EDT 2010


On Aug 13, 3:03 pm, jmfauth <wxjmfa... at gmail.com> wrote:
> A quick question.
>
> I understand how to get these numbers
>
> 34.52000000000000312638803734444081783294677734375
>
> and
>
> 47 (from 2**47)
>
> and the sign.
>
> with the decimal module, but I fail to find this one
>
> 4858258098025923
>
> Possible?

See the float.as_integer_ratio method.

--
Mark



More information about the Python-list mailing list