MoneyFormat
class MoneyFormat extends NumberFormat
Methods
static
getInstance(
Request $request)
No description
string
formatStandardNumber(
float $number,
string $decimals = null)
Get a standard number, with '.' as decimal point and no thousands separator so that this number can be used to perform calculations.
from
NumberFormat
format($number, $decimals = null, $decPoint = null, $thousandsSep = null, $symbol = null)
No description
string
formatStandardMoney(
float $number,
string $decimals = null)
Get a standard number, with '.' as decimal point no thousands separator, and no currency symbol so that this number can be used to perform calculations.
string
formatByCurrency(
float $number,
int $decimals = null,
string $decPoint = null,
string $thousandsSep = null,
int|null $currencyId = null)
No description
Details
in
NumberFormat at line 21
__construct(
Request $request)
at line 20
static
getInstance(
Request $request)
in
NumberFormat at line 39
string
formatStandardNumber(
float $number,
string $decimals = null)
Get a standard number, with '.' as decimal point and no thousands separator so that this number can be used to perform calculations.
at line 38
format($number, $decimals = null, $decPoint = null, $thousandsSep = null, $symbol = null)
at line 33
string
formatStandardMoney(
float $number,
string $decimals = null)
Get a standard number, with '.' as decimal point no thousands separator, and no currency symbol so that this number can be used to perform calculations.