Initializes a new instance of the UnitInterval class.
The top part of the fraction.
The bottom part the fraction.
Private
#denominatorPrivate
#numeratorPrivate
#originalStatic
fromDeserializes the UnitInterval from a CBOR byte array.
The new UnitInterval instance.
The CBOR encoded UnitInterval object.
Static
fromCreates a UnitInterval object from the given Core Fraction object.
Static
fromInitializes a new instance of the UnitInterval class.
The float number.
Generated using TypeDoc
Unit intervals are serialized as Rational Numbers (Tag 30).
Rational numbers are numbers that can be expressed as a ratio of two integers; a numerator, usually written as the top part of a fraction, and the denominator, the bottom part. The value of a rational number is the numerator divided by the denominator.