UnitInterface

interface UnitInterface

Constants

TYPE_CURRENCY

TYPE_FLOAT_PRECISION_LOW

TYPE_FLOAT_PRECISION_HIGH

TYPE_INT

TYPE_MICROTIME

Methods summary

Return Type Method Name Description
string name() -
string perUnitName($value) -
string prefix() -
string suffix() -
string type() Type of data; ie microtime, float, int, currency
decorate($value) -
string formatForType(string|float|int $value) -
float|int roundForType(string|float|int $value) -

Details

string name ()

Return Value

string

string perUnitName ($value)

Parameters

$value

Return Value

string

string prefix ()

Return Value

string

string suffix ()

Return Value

string

string type ()

Type of data; ie microtime, float, int, currency

Return Value

string

decorate ($value)

Parameters

$value

string formatForType (string|float|int $value)

Parameters

string|float|int $value

Return Value

string

float|int roundForType (string|float|int $value)

Parameters

string|float|int $value

Return Value

float|int