CI_Cart::format_number PHP Method

format_number() public method

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