Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2024-05-24
09:10 • Ticket [80ba248aba] Digit grouping status still Open with 6 other changes artifact: 24f95b37e1 user: dkf
2019-11-19
04:46 • New ticket [80ba248aba]. artifact: 8466955820 user: svnpenn

Digit grouping

Open80ba248aba7851885ff28fd8183ef5aa81560566Created 7 years agoUpdated 3 years ago
Descriptionplain2019-11-19 04:46:28
Several languages can do this already, such as Python:

    >>> format(1000, ',')
    '1,000'

PHP:

    php > echo number_format(1000);
    1,000

- https://programming-idioms.org/idiom/173/format-number-group
- https://rosettacode.org/wiki/Commatizing_numbers
dkfmarkdown2024-05-24 09:10:35

Formatting a number with grouping separators would be a feature change, and would require specific requesting in format. The other problem with it is it is locale-sensitive (the rules for doing this in English are different from the rules in German and both are fundamentally different from the Indian rules; the Indian rules are weird BTW!). As such, it's not just about putting commas in after every three digits from the right.

Because of that, we need input on that front to know how to proceed, but we absolutely have some way of doing it properly.

Log in (anonymous is fine) to add a comment.