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: Eli Zaretskii
Subject: Re: operation of 'round' function
Date: Fri, 08 Feb 2002 15:08:54 +0200

> From: address@hidden (David Kastrup)
> Date: 08 Feb 2002 11:35:28 +0100
> 
> >     Rounding a value equidistant between two integers may choose the
> >     integer closer to zero, or it may prefer an even integer, depending on
> >     your machine.  For example, \(round 2.5\) can return 3 on some
> >     systems, but 3 on others.
> 
> You mean, it can return 3 on some systems and 2 on others.

Yes ;-)

> Apart from
> which almost *no* machine will choose the integer *closer* to zero
> when rounding.  Those machines not rounding to even will round *away*
> from zero in almost all cases.

See the message by Andreas: it happens on Windows, because the
fallback method is used.



reply via email to

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