StrictlyPositiveDouble

@ExperimentalSinceKotoolsTypes(version = "4.2")
@Serializable(with = StrictlyPositiveDoubleSerializer::class)
value class StrictlyPositiveDouble : Comparable<StrictlyPositiveDouble>

Represents strictly positive floating-point numbers represented by the Double type.

Functions

Link copied to clipboard
open operator override fun compareTo(other: StrictlyPositiveDouble): Int

Compares this floating-point number with the other one for order. Returns zero if this floating-point number equals the other one, a negative number if it's less than the other one, or a positive number if it's greater than the other one.

Link copied to clipboard

Returns this floating-point number as a Double.

Link copied to clipboard
open override fun toString(): String

Returns the string representation of this floating-point number.