**Submitter:** Fred Tydeman (US)
**Submission Date:** 1999-10-20
**Source:** WG 14
**Reference Document:** N/A
**Version:** 1.2
**Date:** 2001-01-22 03:49:35
**Subject:** ** fprintf %a** and

**Summary**

What should
** fprintf** do when it is printing a floating-point
number using

What should the ** strtod** family of functions do when converting a
hexadecimal form of input and the result is exactly representable?
That is, what is the result of:

**Technical Corrigendum**

7.19.6.1 The ** fprintf** function:

Page 279, Paragraph 12 should be changed from:

Ifto:is not a power of 2, the result should be one of the two adjacent numbers in hexadecimal floating style with the given precision, with the extra stipulation that the error should have a correct sign for the current rounding direction.FLT_RADIX

Forandaconversions, ifAis not a power of 2 and the result is not exactly representable in the given precision, the result should be one of the two adjacent numbers in hexadecimal floating style with the given precision, with the extra stipulation that the error should have a correct sign for the current rounding direction.FLT_RADIX

7.20.1.3 The ** strtod** ... functions:

Page 308, paragraph 8 should be changed from:

If the subject sequence has the hexadecimal form andto:is not a power of 2, the result should be one of the two numbers in the appropriate internal format that are adjacent to the hexadecimal floating source value, with the extra stipulation that the error should have a correct sign for the current rounding direction.FLT_RADIX

If the subject sequence has the hexadecimal form,is not a power of 2 and the result is not exactly representable, the result should be one of the two numbers in the appropriate internal format that are adjacent to the hexadecimal floating source value, with the extra stipulation that the error should have a correct sign for the current rounding direction.FLT_RADIX

7.24.2.1 The

Page 354, Paragraph 12 should be changed from:

Ifto:is not a power of 2, the result should be one of the two adjacent numbers in hexadecimal floating style with the given precision, with the extra stipulation that the error should have a correct sign for the current rounding direction.FLT_RADIX

Forandaconversions, ifAis not a power of 2 and the result is not exactly representable in the given precision, the result should be one of the two adjacent numbers in hexadecimal floating style with the given precision, with the extra stipulation that the error should have a correct sign for the current rounding direction.FLT_RADIX

7.24.4.1.1 The ** wcstod** ... functions:

Page 372, paragraph 8 should be changed from:

If the subject sequence has the hexadecimal form andto:is not a power of 2, the result should be one of the two numbers in the appropriate internal format that are adjacent to the hexadecimal floating source value, with the extra stipulation that the error should have a correct sign for the current rounding direction.FLT_RADIX

If the subject sequence has the hexadecimal form,is not a power of 2 and the result is not exactly representable, the result should be one of the two numbers in the appropriate internal format that are adjacent to the hexadecimal floating source value, with the extra stipulation that the error should have a correct sign for the current rounding direction.FLT_RADIX