Title
What types does numpunct grouping refer to?
Status
cd1
Section
[facet.num.put.virtuals]
Submitter
Howard Hinnant

Created on 2000-12-05.00:00:00 last changed 171 months ago

Messages

Date: 2010-10-21.18:28:33

[ Post-CuraƧao: the above proposed resolution is the consensus of Howard, Bill, Pete, Benjamin, Nathan, Dietmar, Boris, and Martin. ]

Date: 2010-10-21.18:28:33

[ A survey of existing practice is needed; it is believed that some implementations do insert thousands_sep characters for floating-point output and others fail to insert thousands_sep characters for floating-point input even though this is unambiguously required by the standard. ]

Date: 2010-10-21.18:28:33

[ Copenhagen: Opinions were divided about whether this is actually an inconsistency, but at best it seems to have been unintentional. This is only an issue for floating-point output: The standard is unambiguous that implementations must parse thousands_sep characters when performing floating-point. The standard is also unambiguous that this requirement does not apply to the "C" locale. ]

Date: 2010-10-21.18:28:33

Proposed resolution:

Change paragraph 16 from:

For integral types, punct.thousands_sep() characters are inserted into the sequence as determined by the value returned by punct.do_grouping() using the method described in [facet.numpunct.virtuals].

To:

For arithmetic types, punct.thousands_sep() characters are inserted into the sequence as determined by the value returned by punct.do_grouping() using the method described in [facet.numpunct.virtuals].

Date: 2000-12-05.00:00:00

Paragraph 16 mistakenly singles out integral types for inserting thousands_sep() characters. This conflicts with the syntax for floating point numbers described under 22.2.3.1/2.

History
Date User Action Args
2010-10-21 18:28:33adminsetmessages: + msg2105
2010-10-21 18:28:33adminsetmessages: + msg2104
2010-10-21 18:28:33adminsetmessages: + msg2103
2010-10-21 18:28:33adminsetmessages: + msg2102
2000-12-05 00:00:00admincreate