NonNegativeInterval

scalus.cardano.ledger.NonNegativeInterval
See theNonNegativeInterval companion class

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def fromDouble(value: Double): NonNegativeInterval

Creates a NonNegativeInterval from a double value. Uses a precision of 1,000,000 for the conversion.

Creates a NonNegativeInterval from a double value. Uses a precision of 1,000,000 for the conversion.

Value parameters

value

A non-negative double

Attributes

Returns

The corresponding NonNegativeInterval

Givens

Givens

CBOR Decoder for NonNegativeInterval. Decodes from a tagged array [numerator, denominator] with tag 30.

CBOR Decoder for NonNegativeInterval. Decodes from a tagged array [numerator, denominator] with tag 30.

Attributes

CBOR Encoder for NonNegativeInterval. Encodes as a tagged array [numerator, denominator] with tag 30.

CBOR Encoder for NonNegativeInterval. Encodes as a tagged array [numerator, denominator] with tag 30.

Attributes