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

Halfway cases for binary-to-decimal conversion in IEEE 754-1985



The IEEE 754-1985 standard (note: 1985, not 2008) does not seem to
specify how halfway cases should be rounded for binary-to-decimal
conversions in the round-to-nearest mode, in the ranges where
correct rounding is required. Indeed Section 5.6 (Binary <-> Decimal
Conversion) refers to Section 4 (Rounding), but the rounding of
halfway cases in round-to-nearest is specified only for a radix-2
target format.

So, does an implementation that rounds halfway cases away from zero
for binary-to-decimal conversions can be regarded as an IEEE 754-1985
comforming implementation (if everything else is OK)?

Or is this lack of specification regarded as a defect corrected by
IEEE 754-2008?

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


754 | revision | FAQ | references | list archive