Title
interpreting thousands_sep after a decimal_point
Status
cd1
Section
[facet.num.get.virtuals]
Submitter
Martin Sebor

Created on 2002-03-12.00:00:00 last changed 172 months ago

Messages

Date: 2010-10-21.18:28:33

Rationale:

We believe this reflects the intent of the Standard. Thousands sep characters after the decimal point are not useful in any locale. Some formatting conventions do group digits that follow the decimal point, but they usually introduce a different grouping character instead of reusing the thousand sep character. If we want to add support for such conventions, we need to do so explicitly.

Date: 2010-10-21.18:28:33

Proposed resolution:

Change the first sentence of 22.2.2.1.2, p9 from

If discard is true then the position of the character is remembered, but the character is otherwise ignored. If it is not discarded, then a check is made to determine if c is allowed as the next character of an input field of the conversion specifier returned by stage 1. If so it is accumulated.

to

If discard is true, then if '.' has not yet been accumulated, then the position of the character is remembered, but the character is otherwise ignored. Otherwise, if '.' has already been accumulated, the character is discarded and Stage 2 terminates. ...

Date: 2002-03-12.00:00:00

I don't think thousands_sep is being treated correctly after decimal_point has been seen. Since grouping applies only to the integral part of the number, the first such occurrence should, IMO, terminate Stage 2. (If it does not terminate it, then 22.2.2.1.2, p12 and 22.2.3.1.2, p3 need to explain how thousands_sep is to be interpreted in the fractional part of a number.)

The easiest change I can think of that resolves this issue would be something like below.

History
Date User Action Args
2010-10-21 18:28:33adminsetmessages: + msg2347
2010-10-21 18:28:33adminsetmessages: + msg2346
2002-03-12 00:00:00admincreate