- Preparing search index...
- The search index is not available
cardano-sdk
Constructors
constructor
- new UnitInterval(numerator: bigint, denominator: bigint): UnitInterval
-
Parameters
-
numerator: bigint
-
denominator: bigint
Properties
Private
#private
#private: any
Methods
denominator
- denominator(): bigint
-
Returns bigint
numerator
- numerator(): bigint
-
Returns bigint
setDenominator
- setDenominator(denominator: bigint): void
-
Returns void
setNumerator
- setNumerator(numerator: bigint): void
-
Returns void
toCbor
- toCbor(): HexBlob
-
toCore
- toCore(): Fraction
-
toFloat
- toFloat(): number
-
Returns number
Static
fromCbor
- fromCbor(cbor: HexBlob): UnitInterval
-
Static
fromCore
- fromCore(fraction: Fraction): UnitInterval
-
Static
fromFloat
- fromFloat(number: undefined | number): undefined | UnitInterval
-
Parameters
-
number: undefined | number