We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Helper class to deal with numbers.
Formats a number to string.
Definition: public function Format($number, $decimals=false, $use_plain=false)
public function Format($number, $decimals=false, $use_plain=false)
Returns: string The formatted string
string
Parameters:
float $number The value
float $number
int $decimals Number of decimals, defaults to this objects DecimalDigits property
int $decimals
bool $use_plain If true skips formatting
bool $use_plain
Converts a number matching this objects formatting back to a float.
Definition: public function StrToNumber($str)
public function StrToNumber($str)
Returns: float|bool The number or false on error
float|bool
string $str