Companion

object Companion

Properties

Link copied to clipboard

The difference between 1.0 and the next representable value (2⁻¹⁰).

Link copied to clipboard

The most negative finite value (−65504).

Link copied to clipboard
const val MAX_EXPONENT: Int = 15

The maximum exponent value (15).

Link copied to clipboard

The largest finite value (65504).

Link copied to clipboard
const val MIN_EXPONENT: Int

The minimum exponent value (−14).

Link copied to clipboard

The smallest positive normal value (2⁻¹⁴).

Link copied to clipboard

The smallest positive non-zero value (2⁻²⁴).

Link copied to clipboard
val NaN: Half

Not a Number.

Link copied to clipboard

Negative infinity.

Link copied to clipboard

Negative zero (−0).

Link copied to clipboard

Positive infinity.

Link copied to clipboard

Positive zero (+0).

Link copied to clipboard
const val SIZE: Int = 16

The number of bits used to represent a Half value.

Functions

Link copied to clipboard
fun fromBits(bits: Int): Half

Returns a Half with the raw bit pattern bits (low 16 bits used).