[Python-Dev] Return type of round, floor, and ceil in 2.6 (original) (raw)
Jeffrey Yasskin jyasskin at gmail.com
Fri Jan 4 17:14:31 CET 2008
- Previous message: [Python-Dev] Return type of round, floor, and ceil in 2.6
- Next message: [Python-Dev] Return type of round, floor, and ceil in 2.6
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Jan 4, 2008 4:40 AM, Facundo Batista <facundobatista at gmail.com> wrote:
2008/1/4, Jeffrey Yasskin <jyasskin at gmail.com>:
> I haven't seen any answers to the original question. It looks like > Decimal is decided by 2.5 too: return a float from everything. > Rational, being a completely new type, is up to you guys, but because > new support for the conversion routines seems to be rare, it's > probably best to have it return floats too. Sorry, I didn't understand this parragraph. Do you mean that the response in the following case is of type "float"?: >>> round(decimal.Decimal("2.5")) 3.0
Yes.
-- Namasté, Jeffrey Yasskin
- Previous message: [Python-Dev] Return type of round, floor, and ceil in 2.6
- Next message: [Python-Dev] Return type of round, floor, and ceil in 2.6
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]