[Python-Dev] Re: Revamping Python's Numeric Model

Moshe Zadka py-dev@zadka.site.co.il
Sun, 05 Nov 2000 19:25:33 +0200


[Martin v. Loewis]
> Remind you that your model has no notion of floating-point numbers -
> then what the heck are floating-point literals? The numbers that you
> can write in a base-10 notation are all rational numbers, and the
> point doesn't really float in them...

Well, of course they are rational numbers. The only question is whether 1.0
should be inexact or exact. While that is not specified in the PEP (which
was meant for Barry to assign me a PEP number primarily...), I think
the principle of least suprise would be to treat 1.0 as inexact.
(IOW, not to promise that (1.0/3.0)*3.0 == 1.0)
-- 
Moshe Zadka <sig@zadka.site.co.il>