class NumberFormat

Methods

__construct( Request $request)

No description

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.

format($number, $decimals = null, $decPoint = null, $thousandsSep = null)

No description

Details

at line 21
__construct( Request $request)

Parameters

Request $request

at line 26
static getInstance( Request $request)

Parameters

Request $request

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.

Parameters

float $number the number
string $decimals number of decimal figures

Return Value

string

at line 50
format($number, $decimals = null, $decPoint = null, $thousandsSep = null)

Parameters

$number
$decimals
$decPoint
$thousandsSep