Now non decimal numbers have all right zeros. Ticket #4254

(cherry picked from commit bba75aa166)
This commit is contained in:
Arturo Gonzalez 2016-12-01 08:55:44 +01:00
parent cce7a397f4
commit 8cfb05fc99
1 changed files with 8 additions and 2 deletions

View File

@ -2656,7 +2656,13 @@ function pandora_setlocale() {
}
function remove_right_zeros ($value) {
$is_decimal = explode(".", $value);
if (isset($is_decimal[1])) {
$value_to_return = rtrim($value, "0");
return rtrim($value_to_return, ".");
}
else {
return $value;
}
}
?>