Note: currently length is not used in decimalFormats from CLDR.
But it's defined in the specification, so we support it here.
public formatDecimalNumber ( mixed $number, |
||
$number | mixed | Float or int, can be negative, can be NaN or infinite |
$locale | ||
$formatLength | string | One of NumbersReader FORMAT_LENGTH constants |
Результат | string | Formatted number. Will return string-casted version of $number if there is no pattern for given $locale / $formatLength |