Unit value
const value = new UnitValue(5, LengthUnit.METER); Copy
const value = new UnitValue(5, LengthUnit.METER);
const value = new UnitValue(5, LengthUnit.METER);const converted = value.to(LengthUnit.CENTIMETER); Copy
const value = new UnitValue(5, LengthUnit.METER);const converted = value.to(LengthUnit.CENTIMETER);
Optional
Protected
Unit this value is in
Convert the value to another unit
Target unit
Converted value
Returns a string representation of an object.
Unit value as string
Returns the primitive value
Primitive value
Unit value
Usage
Creation
Conversion