On Sun, Sep 30, 2012 at 2:51 PM, Joshua Landau
<joshua.landau...@gmail.com> wrote:math.ceil(x), math.floor(x), and math.trunc(x) and round(x) already
> On 30 September 2012 22:48, Joshua Landau <joshua.landau...@gmail.com>
>> This seems like a problem for the proposal, though: we can't have it in
> Now I think about it: yeah, it can be. We just coerce to float/decimal
call the special methods x.__ceil__, x.__floor__, x.__round__, and
x.__trunc__. So those four functions already work with decimal
instances (and other numeric types that support those methods.)
Python-ideas mailing list
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.