[Python-Dev] Floating-point implementations

Mark Dickinson dickinsm at gmail.com
Wed Dec 10 16:51:29 CET 2008


On Tue, Dec 9, 2008 at 9:48 PM, Lie Ryan <lie.1296 at gmail.com> wrote:
> Why don't we create a DecimalFloat datatype which is a variable-width
> floating point number. Decimal is variable precision fixed-point number,
> while the plain ol' float would be system dependent floating point.

Decimal is *already* floating-point.  Its handling of exponents
and significant zeros mean that it can do a pretty good job of
imitating fixed-point as well, but it's still at root a floating-point
type.

Mark


More information about the Python-Dev mailing list