diff --git a/framework/i18n/Formatter.php b/framework/i18n/Formatter.php index 7e5cb1d070..37c82377c4 100644 --- a/framework/i18n/Formatter.php +++ b/framework/i18n/Formatter.php @@ -1188,7 +1188,7 @@ class Formatter extends Component private function formatSizeNumber($value, $decimals, $options, $textOptions) { if (is_string($value) && is_numeric($value)) { - $value = (int) $value; + $value = (float) $value; } if (!is_numeric($value)) { throw new InvalidParamException("'$value' is not a numeric value.");