src/Forms/Transformers/NumberToLocalizedStringTransformer.php
protected function getFormatter()
    {
        $formatter = new \NumberFormatter($this->locale, \NumberFormatter::DECIMAL);
        $precision = $this->field->getOption('precision', 0);

        if ($precision) {
            $formatter->setAttribute(\NumberFormatter::FRACTION_DIGITS, $precision);
        }

        return $formatter;
    }
protected function getFormatter()
    {
        $formatter = new \NumberFormatter($this->locale, \NumberFormatter::DECIMAL);
        $precision = $this->field->getOption('precision', 0);

        if ($precision) {
            $formatter->setAttribute(\NumberFormatter::FRACTION_DIGITS, $precision);
        }

        return $formatter;
    }
protected function getFormatter ( ) { $ formatter = new \ NumberFormatter ( $ this -> locale , \ NumberFormatter :: DECIMAL ) ; $ precision = $ this -> field -> getOption ( 'precision' , 0 ) ; if ( $ precision ) { $ formatter -> setAttribute ( \ NumberFormatter :: FRACTION_DIGITS , $ precision ) ; } return $ formatter ; }
Retrieve a NumberFormatter instance.

@return \NumberFormatter
Retrieve a NumberFormatter instance .