new Unitz.Conversion(converted, fraction, group)
Instantiates a new conversion instance with a converted value, it's fraction representation, and the unit group.
Name | Type | Description |
---|---|---|
converted |
Number |
The converted value as a number. |
fraction |
Unitz.Fraction |
The converted value as a fraction. |
group |
Unitz.Group |
The group for the unit of this conversion. |
- See:
Members
-
decimalNumber
-
The converted value.
-
fractionUnitz.Fraction
-
The converted fraction.
-
friendlyString Number
-
The friendly version of the converted value - either the
Unitz.Fraction#string
value of the fraction is valid - or theUnitz.Conversion#decimal
value. -
groupUnitz.Group
-
The group of the converted value.
-
longNormalString
-
The friendly version of the converted value with the long unit appended.
-
longUnitString
-
The long representation for the conversion unit. This depends on the singular/plural nature of the converted value.
-
shortNormalString
-
The friendly version of the converted value with the short unit appended.
-
shortUnitString
-
The short representation for the conversion unit. This doesn't change depending on the singular/plural nature of the converted value.