mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-16 06:17:56 +08:00
Update Formatter.php
string type are cast to integer and have rapresentation of 2147483647 using float type instead for represent larger numbers
This commit is contained in:
@@ -1092,7 +1092,7 @@ class Formatter extends Component
|
||||
* If [[sizeFormatBase]] is 1024, [binary prefixes](http://en.wikipedia.org/wiki/Binary_prefix) (e.g. kibibyte/KiB, mebibyte/MiB, ...)
|
||||
* are used in the formatting result.
|
||||
*
|
||||
* @param integer $value value in bytes to be formatted.
|
||||
* @param string|integer|float $value value in bytes to be formatted.
|
||||
* @param integer $decimals the number of digits after the decimal point.
|
||||
* @param array $options optional configuration for the number formatter. This parameter will be merged with [[numberFormatterOptions]].
|
||||
* @param array $textOptions optional configuration for the number formatter. This parameter will be merged with [[numberFormatterTextOptions]].
|
||||
@@ -1136,7 +1136,7 @@ class Formatter extends Component
|
||||
* If [[sizeFormatBase]] is 1024, [binary prefixes](http://en.wikipedia.org/wiki/Binary_prefix) (e.g. kibibyte/KiB, mebibyte/MiB, ...)
|
||||
* are used in the formatting result.
|
||||
*
|
||||
* @param integer $value value in bytes to be formatted.
|
||||
* @param string|integer|float $value value in bytes to be formatted.
|
||||
* @param integer $decimals the number of digits after the decimal point.
|
||||
* @param array $options optional configuration for the number formatter. This parameter will be merged with [[numberFormatterOptions]].
|
||||
* @param array $textOptions optional configuration for the number formatter. This parameter will be merged with [[numberFormatterTextOptions]].
|
||||
|
||||
Reference in New Issue
Block a user