Depending on the settings of your PC this line with printf could return invalid number because a decimal fraction is not always represented with a . but with a , instead.
Putting LC_NUMERIC="en_US.UTF-8" sets the locale for numbers to en_US.UTF-8 (which uses the . of course) for the script only.
Depending on the settings of your PC this line with printf could return
invalid number
because a decimal fraction is not always represented with a.
but with a,
instead. PuttingLC_NUMERIC="en_US.UTF-8"
sets the locale for numbers to en_US.UTF-8 (which uses the.
of course) for the script only.See also https://stackoverflow.com/questions/12845997/printf-command-inside-a-script-returns-invalid-number