Companion

Functions

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

Returns the Half value corresponding to the given bit representation according to the IEEE 754 floating-point half-precision bit layout.

Properties

Link copied to clipboard

Epsilon is the difference between 1.0 and the next value representable by a half-precision floating-point.

Link copied to clipboard

Smallest negative value a half-precision float may have.

Link copied to clipboard
const val MAX_EXPONENT: Int = 15

Maximum exponent a finite half-precision float may have.

Link copied to clipboard

Maximum positive finite value a half-precision float may have.

Link copied to clipboard
const val MIN_EXPONENT: Int

Minimum exponent a normalized half-precision float may have.

Link copied to clipboard

Smallest positive normal value a half-precision float may have.

Link copied to clipboard

Smallest positive non-zero value a half-precision float may have.

Link copied to clipboard
val NaN: Half

A Not-a-Number representation of a half-precision float.

Link copied to clipboard

Negative infinity of type half-precision float.

Link copied to clipboard

Negative 0 of type half-precision float.

Link copied to clipboard

Positive infinity of type half-precision float.

Link copied to clipboard

Positive 0 of type half-precision float.

Link copied to clipboard
const val SIZE: Int = 16

The number of bits used to represent a half-precision float value.