Property [[decimalSeparator]] will be used to represent the decimal point. The
value is rounded automatically to the defined decimal digits.
public asDecimal ( mixed $value, integer $decimals = null, array $options = [], array $textOptions = [] ) : string | ||
$value | mixed | the value to be formatted. |
$decimals | integer | the number of digits after the decimal point. If not given the number of digits is determined from the [[locale]] and if the [PHP intl extension](http://php.net/manual/en/book.intl.php) is not available defaults to `2`. |
$options | array | optional configuration for the number formatter. This parameter will be merged with [[numberFormatterOptions]]. |
$textOptions | array | optional configuration for the number formatter. This parameter will be merged with [[numberFormatterTextOptions]]. |
리턴 | string | the formatted result. |