[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: operation of 'round' function

From: David Masterson
Subject: Re: operation of 'round' function
Date: 07 Feb 2002 09:20:02 -0800
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1

>>>>> Deepak Goel writes:

>> Your interpretation of the docstring is incorrect.  The docstring
>> actually says nothing about what should happen in the cases when
>> the fractional part is exactly 0.5.

> And in such cases, the 'standard' solution is indeed to round it to
> the nearest even integer...

So, if it is 2.5, you round to 2, but, if it is 3.5, you round to 4??

David Masterson                dmaster AT synopsys DOT com
Sr. R&D Engineer               Synopsys, Inc.
Software Engineering           Sunnyvale, CA

reply via email to

[Prev in Thread] Current Thread [Next in Thread]