[Python-ideas] Python Numbers as Human Concept Decimal System
Greg
greg.ewing at canterbury.ac.nz
Fri Mar 7 03:16:13 CET 2014
On 7/03/2014 1:17 p.m., Chris Angelico wrote:
> On Fri, Mar 7, 2014 at 10:59 AM, Cameron Simpson <cs at zip.com.au> wrote:
>> Aside: Unless you do something obtuse, like make "3F" be a regular
>> number with a special internal flag
>
> I thought exactly what you say here, that 3F would have to be a
> magical type of integer. But actually, all it has to be is Fraction(3)
> and everything will work perfectly.
I think Cameron was talking about using 'F' for both 'binary
floating point' *and* 'fraction', which would indeed lead to
madness.
--
Greg
More information about the Python-ideas
mailing list