public function convert($number)
    {

        // initialize the formatter instance with the source locale
        $formatter = \NumberFormatter::create($this->getNumberConverterConfiguration()->getLocale(), \NumberFormatter::DECIMAL);

        // parse, format and return the value
        return $this->getFormatter()->format($formatter->parse($number));
    }
public function convert($number)
    {

        // initialize the formatter instance with the source locale
        $formatter = \NumberFormatter::create($this->getNumberConverterConfiguration()->getLocale(), \NumberFormatter::DECIMAL);

        // parse, format and return the value
        return $this->getFormatter()->format($formatter->parse($number));
    }
public function convert ( $ number ) { // initialize the formatter instance with the source locale $ formatter = \ NumberFormatter :: create ( $ this -> getNumberConverterConfiguration ( ) -> getLocale ( ) , \ NumberFormatter :: DECIMAL ) ; // parse, format and return the value return $ this -> getFormatter ( ) -> format ( $ formatter -> parse ( $ number ) ) ; }
Converts the passed number into a float value.

@param string $number The number to parse

@return float The float value of the number
Converts the passed number into a float value .