Title
setprecision() not specified correctly
Status
tc1
Section
[fmtflags.state]
Submitter
Andrew Koenig

Created on 1999-08-25.00:00:00 last changed 172 months ago

Messages

Date: 2010-10-21.18:28:33

Proposed resolution:

Remove from [fmtflags.state], paragraph 9, the text "(number of digits after the decimal point)".

Date: 1999-08-25.00:00:00

27.4.2.2 paragraph 9 claims that setprecision() sets the precision, and includes a parenthetical note saying that it is the number of digits after the decimal point.

This claim is not strictly correct. For example, in the default floating-point output format, setprecision sets the number of significant digits printed, not the number of digits after the decimal point.

I would like the committee to look at the definition carefully and correct the statement in 27.4.2.2

History
Date User Action Args
2010-10-21 18:28:33adminsetmessages: + msg1805
1999-08-25 00:00:00admincreate