NonNegativeInterval

scalus.cardano.ledger.NonNegativeInterval
See theNonNegativeInterval companion object
case class NonNegativeInterval(numerator: Long, denominator: Long)

Represents a non-negative interval in the Cardano blockchain.

A non-negative interval is represented as a fraction with a numerator and denominator, where both are non-negative and the denominator is positive.

Value parameters

denominator

The denominator of the fraction (positive)

numerator

The numerator of the fraction (non-negative)

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def toDouble: Double

Converts this interval to a double value.

Converts this interval to a double value.

Attributes

Returns

The double value representation

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product