bug-gnu-emacs
[Top][All Lists]
Advanced

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

Re: operation of 'round' function


From: David Kastrup
Subject: Re: operation of 'round' function
Date: 07 Feb 2002 18:20:55 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1

address@hidden (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...

It should be mentioned in the docstring whether Emacs in this case is
guaranteed to round to even, or whether this depends on the
machine/compiler combination on which Emacs is compiled.

Apart from which, this case should be mentioned in any form in the doc
string in the first place.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum
Email: address@hidden



reply via email to

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