Zero

@ExperimentalSince(version = KotoolsTypesVersion.V4_5_1)
class Zero

Represents the zero number.

For creating an instance of this type, see its constructor or the additional factory functions provided by the Zero.Companion type.

Constructors

Link copied to clipboard
constructor()

Creates an instance of Zero.

Types

Link copied to clipboard
object Companion

Contains static declarations for the Zero type.

Functions

Link copied to clipboard
@ExperimentalSince(version = KotoolsTypesVersion.V4_5_2)
operator fun compareTo(other: Byte): Int
@ExperimentalSince(version = KotoolsTypesVersion.V4_5_2)
operator fun compareTo(other: Double): Int
@ExperimentalSince(version = KotoolsTypesVersion.V4_5_2)
operator fun compareTo(other: Float): Int
@ExperimentalSince(version = KotoolsTypesVersion.V4_5_2)
operator fun compareTo(other: Int): Int
@ExperimentalSince(version = KotoolsTypesVersion.V4_5_2)
operator fun compareTo(other: Long): Int
@ExperimentalSince(version = KotoolsTypesVersion.V4_5_2)
operator fun compareTo(other: Short): Int

Compares this number with the other one for order. Returns zero if this 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
operator override fun equals(other: Any?): Boolean

Returns true if the other object is an instance of Zero, or returns false otherwise.

Link copied to clipboard
override fun hashCode(): Int

Returns a hash code value for this number.

Link copied to clipboard
fun toByte(): Byte

Returns this number as Byte.

Link copied to clipboard
@ExperimentalSince(version = KotoolsTypesVersion.V4_5_2)
fun toChar(): Char

Returns the character representation of this number.

Link copied to clipboard
@ExperimentalSince(version = KotoolsTypesVersion.V4_5_2)
fun toDouble(): Double

Returns this number as Double.

Link copied to clipboard
@ExperimentalSince(version = KotoolsTypesVersion.V4_5_2)
fun toFloat(): Float

Returns this number as Float.

Link copied to clipboard
@ExperimentalSince(version = KotoolsTypesVersion.V4_5_2)
fun toInt(): Int

Returns this number as Int.

Link copied to clipboard
@ExperimentalSince(version = KotoolsTypesVersion.V4_5_2)
fun toLong(): Long

Returns this number as Long.

Link copied to clipboard
@ExperimentalSince(version = KotoolsTypesVersion.V4_5_2)
fun toShort(): Short

Returns this number as Short.

Link copied to clipboard
override fun toString(): String

Returns the string representation of this number.