CI_Cart::format_number PHP Méthode

format_number() public méthode

Returns the supplied number with commas and a decimal point.
public format_number ( $n = '' ) : string
Résultat string
    public function format_number($n = '')
    {
        return $n === '' ? '' : number_format((double) $n, 2, '.', ',');
    }