UnitInterface
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 ()
string
perUnitName ($value)
string
prefix ()
string
suffix ()
string
type ()
Type of data; ie microtime, float, int, currency