7 Jul
2018
7 Jul
'18
13:38
On 2018-07-07 15:26, Dave Howorth wrote:
On Sat, 07 Jul 2018 15:19:29 +0200 "Knurpht@openSUSE" <> wrote:
printf -v var "%.*f" 0 6.66; echo $var
specifically in your case: printf -v DPI "%.0f" $1
but whenever a bash script starts to do things like this, I switch to perl.
Ah, but I don't know perl ;-) My script is now happily running with: DPI=`LC_NUMERIC=en_GB.utf8 printf "%.0f\n" $1` -- Cheers / Saludos, Carlos E. R. (from 42.3 x86_64 "Malachite" at Telcontar)