Swat/SwatFloatEntry.php
protected function getDisplayValue($value)
    {
        if (is_numeric($value)) {
            $locale = SwatI18NLocale::get();
            $thousands_separator = $this->show_thousands_separator ? null : '';

            $value = $locale->formatNumber($value, null, array(
                'thousands_separator' => $thousands_separator
            ));
        } else {
            $value = parent::getDisplayValue($value);
        }

        return $value;
    }
protected function getDisplayValue($value)
    {
        if (is_numeric($value)) {
            $locale = SwatI18NLocale::get();
            $thousands_separator = $this->show_thousands_separator ? null : '';

            $value = $locale->formatNumber($value, null, array(
                'thousands_separator' => $thousands_separator
            ));
        } else {
            $value = parent::getDisplayValue($value);
        }

        return $value;
    }
protected function getDisplayValue ( $ value ) { if ( is_numeric ( $ value ) ) { $ locale = SwatI18NLocale :: get ( ) ; $ thousands_separator = $ this -> show_thousands_separator ? null : '' ; $ value = $ locale -> formatNumber ( $ value , null , array ( 'thousands_separator' => $ thousands_separator ) ) ; } else { $ value = parent :: getDisplayValue ( $ value ) ; } return $ value ; }
Formats a float value to display

@param string $value the value to format for display.

@return string the formatted value.
Formats a float value to display