Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <locale.h>
- #include <stdio.h>
- #include <stdlib.h>
- #define LC_DEFAULT "en_US.ISO8859-1"
- int
- main(int argc, char *argv[])
- {
- printf("%'10.3f\n", 1000001.010);
- setlocale(LC_NUMERIC,
- getenv("LC_ALL") == NULL && getenv("LC_NUMERIC") == NULL ?
- LC_DEFAULT : "");
- printf("%'10.3f\n", 1000001.010);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement