(original) (raw)
On Jan 4, 2008 11:14 AM, Jeffrey Yasskin <jyasskin@gmail.com> wrote:
On Jan 4, 2008 4:40 AM, Facundo Batista <facundobatista@gmail.com> wrote:Yes.
> Do you mean that the response in the following case is of type "float"?:
>
> >>> round(decimal.Decimal("2.5"))
> 3.0
That seems a little peculiar to me: wouldn't it be more natural to have round(Decimal\_instance) return another Decimal?
Mark