public function Twig_Extension_Core::setNumberFormat in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/twig/twig/lib/Twig/Extension/Core.php \Twig_Extension_Core::setNumberFormat()
Sets the default format to be used by the number_format filter.
Parameters
int $decimal The number of decimal places to use.:
string $decimalPoint The character(s) to use for the decimal point.:
string $thousandSep The character(s) to use for the thousands separator.:
File
- vendor/
twig/ twig/ lib/ Twig/ Extension/ Core.php, line 102
Class
Code
public function setNumberFormat($decimal, $decimalPoint, $thousandSep) {
$this->numberFormat = array(
$decimal,
$decimalPoint,
$thousandSep,
);
}