Thread Links Date Links
Thread Prev Thread Next Thread Index Date Prev Date Next Date Index

Re: Rounding rule for P1788/M0037.01



On 2012-10-29 12:30:59 -0400, Michel Hack wrote:
> Perhaps we should offer a friendly amendment to replace that
> paragraph:
> 
>     "if there are two closest numbers, we use the default
>     rounding mode defined for the format."

There isn't necessarily a notion of "default" rounding mode.
But you could say that the choice of the rounded value (among
the two closest numbers) is implementation-defined.

> This would also allow COBOL to use ties-away-from-zero, which
> is permitted by IEEE 754-2008 for decimal formats.

Yes.

-- 
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)