Solar_View_Helper_Number::number()

public string Solar_View_Helper_Number::number ( string|int|float $number , int $decimals = NULL )

Returns a numeric value formatted with » number_format().

Parameters

  • (string|int|float) $number: A numeric value.

  • (int) $decimals: Round to this many decimal places; if null, use all decimal places in $number.

Returns

  • (string) The formatted number string.

Description

Returns a numeric value formatted with » number_format().



Local