BUG - correcting size and non significant zeroes (#9575)

This commit is contained in:
PipoCanaja
2018-12-21 02:50:36 +01:00
committed by Tony Murray
parent 587c17e215
commit 2d84606abf
3 changed files with 8 additions and 9 deletions

View File

@@ -627,7 +627,7 @@ function format_si($value, $round = '2', $sf = '3')
$value = $value * -1;
}
return number_format(round($value, $round), $sf, '.', '').$ext;
return (number_format(round($value, $round), $sf, '.', '')+0)." ".$ext;
}
function format_bi($value, $round = '2', $sf = '3')
@@ -646,8 +646,7 @@ function format_bi($value, $round = '2', $sf = '3')
if ($neg) {
$value = $value * -1;
}
return number_format(round($value, $round), $sf, '.', '').$ext;
return (number_format(round($value, $round), $sf, '.', '')+0)." ".$ext;
}
function format_number($value, $base = '1000', $round = 2, $sf = 3)