You are here

public function Twig_Extension_Core::setNumberFormat in Translation template extractor 6.3

Same name and namespace in other branches
  1. 7.3 vendor/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/Extension/Core.php, line 102

Class

Twig_Extension_Core

Code

public function setNumberFormat($decimal, $decimalPoint, $thousandSep) {
  $this->numberFormat = array(
    $decimal,
    $decimalPoint,
    $thousandSep,
  );
}