_fnum

Format a number

Parameters
int $value

A number to be formatted

#
int $decimals = 2

The decimal places. Default is 2.

#
string $unit = ''

The unit appended to the number (optional)

#
Returns
string

The formatted number