[Python-ideas] Python Numbers as Human Concept Decimal System
Cameron Simpson
cs at zip.com.au
Fri Mar 7 03:58:21 CET 2014
On 07Mar2014 15:16, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> 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.
Well, only because I hadn't thought through to having it be a literal
Fraction, which it turns out already has exactly this cool semantic.
--
Cameron Simpson <cs at zip.com.au>
The reasonable man adapts himself to the world; the unreasonable one persists
in trying to adapt the world to himself. Therefore all progress depends
on the unreasonable man. - George Bernard Shaw
More information about the Python-ideas
mailing list