$LC_NUMERIC
–
LC_NUMERIC
$LC_NUMERIC defines the locale category for numeric formatting, e.g. how printf
is formatting numbers.
Links
Examples
- Printf using German number formatting
- Output:
1
LC_NUMERIC="de_DE.UTF8" command printf "%d: %.2f\n" 12345 12345
1
12345: 12345,00
BashSupport Pro is a Bash and POSIX IDE with support for $LC_NUMERIC – try it now!