Closed 0Karakurt0 closed 3 years ago
hm, this looks like a LANG problem, whats your language setting?
what's the output of (include possible errors):
LC_ALL=C.utf-8 printf "%.1f\n" "2.47";
printf "%.1f\n" "2.47";
I guess it's because locale C
is not installed on your system and you use a local where ,
is the decimal seperator like in german or other european languages. This should fix it for the next release: fe1fb757481f36233f3ad30bb394555c1ca4c488
# to fix it temporary in your bot change:
_round_float() {
local digit="$2";
...
# to:
_round_float() {
local digit="0";
...
This is what I've got when launched bot in debug mode. There should be dot instead