StrictlyPositiveDouble

@ExperimentalSince(version = KotoolsTypesVersion.V4_4_0)
class StrictlyPositiveDouble : Comparable<StrictlyPositiveDouble>

Represents a floating-point number of type Double that is greater than zero.

You can use the toStrictlyPositiveDouble function for creating an instance of this type.

Types

Link copied to clipboard
object Companion

Contains static declarations for the StrictlyPositiveDouble 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
open operator override fun equals(other: Any?): Boolean

Returns true if the other object is a StrictlyPositiveDouble having the same value as this floating-point number, or returns false otherwise.

Link copied to clipboard
open override fun hashCode(): Int

Returns a hash code value for this floating-point number.

Link copied to clipboard

Returns this floating-point number as a Double.

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

Returns this floating-point number as String.