[Python-Dev] Re: Decimal data type issues
tcdelaney at optusnet.com.au
Thu Apr 22 19:33:01 EDT 2004
Tim Peters wrote:
> [Batista, Facundo]
>> The round() method has the appealing that it could has the same
>> name/meaning/function that the built in round().
> As Tim Delaney said later, the best way to do that would be to change
> implementation of Python's builtin round(). I don't think changing
> Python (beyond adding the new module) is in scope for the first
> release, though.
I think we probably want a supplemental PEP for upgrading the `math` module
plus appropriate builtins (like round) to handle Decimal. A quick scan
through the docs reveals
- All the `math` module (thin wrappers for float, hand-written code for
Decimal I guess).
which look like candidates.
More information about the Python-Dev