public function number($number, $decimals = 0)
    {
        if (!$this->localizer) {
            return number_format($number, $decimals);
        }

        return $this->localizer->number($number, $decimals);
    }
public function number($number, $decimals = 0)
    {
        if (!$this->localizer) {
            return number_format($number, $decimals);
        }

        return $this->localizer->number($number, $decimals);
    }
public function number ( $ number , $ decimals = 0 ) { if ( ! $ this -> localizer ) { return number_format ( $ number , $ decimals ) ; } return $ this -> localizer -> number ( $ number , $ decimals ) ; }
Display a nice number.

@param string|int|float $number
@param int              $decimals (optional)

@return string
Display a nice number .