Wikibase
MediaWiki Wikibase extension
|
Convert quantities to other units. More...
Public Member Functions | |
__construct (UnitStorage $store, $entityPrefix) | |
toStandardUnits (UnboundedQuantityValue $value) | |
Convert QuantityValue to standard units. More... | |
Private Member Functions | |
makeDecimalValue ( $number) | |
Create DecimalValue from regular numeric string or value. More... | |
Private Attributes | |
$store | |
$math | |
$logger | |
$prefix | |
Convert quantities to other units.
Wikibase\Lib\Units\UnitConverter::__construct | ( | UnitStorage | $store, |
$entityPrefix | |||
) |
|
private |
Create DecimalValue from regular numeric string or value.
int | float | string | $number | FIXME: replace with DecimalValue method from https://github.com/DataValues/Number/pull/67 |
Wikibase\Lib\Units\UnitConverter::toStandardUnits | ( | UnboundedQuantityValue | $value | ) |
Convert QuantityValue to standard units.
UnboundedQuantityValue | $value |
|
private |
|
private |
|
private |
|
private |