public function getPrettyNumber($value, $precision = 0)
    {
        if ($this->decimalPoint === null) {
            $locale = localeconv();

            $this->decimalPoint = $locale['decimal_point'];
            $this->thousandsSeparator = $locale['thousands_sep'];
        }

        return number_format($value, $precision, $this->decimalPoint, $this->thousandsSeparator);
    }
public function getPrettyNumber($value, $precision = 0)
    {
        if ($this->decimalPoint === null) {
            $locale = localeconv();

            $this->decimalPoint = $locale['decimal_point'];
            $this->thousandsSeparator = $locale['thousands_sep'];
        }

        return number_format($value, $precision, $this->decimalPoint, $this->thousandsSeparator);
    }
public function getPrettyNumber ( $ value , $ precision = 0 ) { if ( $ this -> decimalPoint === null ) { $ locale = localeconv ( ) ; $ this -> decimalPoint = $ locale [ 'decimal_point' ] ; $ this -> thousandsSeparator = $ locale [ 'thousands_sep' ] ; } return number_format ( $ value , $ precision , $ this -> decimalPoint , $ this -> thousandsSeparator ) ; }
Returns a prettified string representation of a number. The result will have
thousands separators and a decimal point specific to the current locale, eg,
`'1,000,000.05'` or `'1.000.000,05'`.

@param number $value
@return string
@api
Returns a prettified string representation of a number . The result will have thousands separators and a decimal point specific to the current locale eg 1 000 000 . 05 or 1 . 000 . 000 05 .