$LC_NUMERIC  –  LC_NUMERIC

$LC_NUMERIC defines the locale category for numeric formatting, e.g. how printf is formatting numbers.

Examples

Printf using German number formatting
1
LC_NUMERIC="de_DE.UTF8" command printf "%d: %.2f\n" 12345 12345
Output:
1
12345: 12345,00
BashSupport Pro is a Bash and POSIX IDE with support for $LC_NUMERICtry it now!
© 2020–2024 Joachim Ansorg
Imprint
Privacy Policy
Legal