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

Re: Rounding rule for P1788/M0037.01



Of course, "implementation-defined" would mean we would be
giving up reproducibility, but that would not be a problem
with 754-based formats.

Baker

On 10/29/2012 12:05 PM, Vincent Lefevre wrote:
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.



--

---------------------------------------------------------------
Ralph Baker Kearfott,   rbk@xxxxxxxxxxxxx   (337) 482-5346 (fax)
(337) 482-5270 (work)                     (337) 993-1827 (home)
URL: http://interval.louisiana.edu/kearfott.html
Department of Mathematics, University of Louisiana at Lafayette
(Room 217 Maxim D. Doucet Hall, 1403 Johnston Street)
Box 4-1010, Lafayette, LA 70504-1010, USA
---------------------------------------------------------------