Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C Programming
POSIX enhancements to printf
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="BartC, post: 5147113"] I suppose my point is that a decimal point rather than comma is probably the de facto standard for machine-readable fields in text, even with countries that use the comma, unless the text is purely for internal use within the region. The business with the thousands separator is less important - that is only for display, and not an essential part of the data like the decimal point. It's unusual anyway to have to deal with thousands separators in input (I only do that for source code, and then the separator is not a comma). And really, when I output numbers with such separators, it is /only to make long numbers more readable/; I care very little about local customs or whether it is exactly right for the region! Anyone in their own region can do the same. The unfortunate few who have to create software that does the 'right thing' in every single region, then they're welcome to all those headaches. But I suspect there is a lot more to it than just setlocale() and "%f". [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
POSIX enhancements to printf
Top