Re: [Python-ideas] Python-ideas Digest, Vol 103, Issue 2

Floats internally use numerator and denominator (float.as_integer_ratio().) It makes no sense to have sign and mantissa while displaying numerator and denominator. Perhaps a redo of the class? I believe fractions should be the standard, and just keep the ieee754 floats as a side option. On Sun, May 31, 2015 at 7:37 PM, <python-ideas-request@python.org> wrote:

On Mon, Jun 1, 2015, at 15:13, u8y7541 The Awesome Person wrote:
Floats internally use numerator and denominator (float.as_integer_ratio().)
The fact that this method exists is not actually evidence that this form is used internally. This is a utility method, provided, I suspect, for the use of the fractions.Fraction constructor (which class does use a numerator and denominator).

On Mon, Jun 1, 2015, at 15:13, u8y7541 The Awesome Person wrote:
Floats internally use numerator and denominator (float.as_integer_ratio().)
The fact that this method exists is not actually evidence that this form is used internally. This is a utility method, provided, I suspect, for the use of the fractions.Fraction constructor (which class does use a numerator and denominator).
participants (2)
-
random832@fastmail.us
-
u8y7541 The Awesome Person