object Companion
source · line 21public companion : ValueEncoder<Float>, ValueDecoder<Float>, ValueInspector<Float>
- Supertype
ValueEncoder<Float> - Supertype
ValueDecoder<Float> - Supertype
ValueInspector<Float>
Representation constants, raw-bit construction, and scalar codec operations.
property MAX_VALUE
source · line 55public const val MAX_VALUE: Float
get: public read-only
The largest finite positive value.
property NaN
source · line 43public const val NaN: Float
get: public read-only
A not-a-number value. Use isNaN to classify NaNs.
function encode
source · line 31public override fun encode(value: Float, encoder: Encoder): Unit
- Overrides
encode· ValueEncoder
Writes the value through the encoder's matching floating-point scalar operation.
parameter value
source · line 31value: Float
parameter encoder
source · line 31encoder: Encoder
property MIN_NORMAL
source · line 63public const val MIN_NORMAL: Float
get: public read-only
The smallest positive normal value.
property POSITIVE_INFINITY
source · line 47public const val POSITIVE_INFINITY: Float
get: public read-only
The positive unbounded floating-point value.
function decode
source · line 37public override fun decode(decoder: Decoder): Float
- Overrides
decode· ValueDecoder
Reads the value through the decoder's matching floating-point scalar operation.
parameter decoder
source · line 37decoder: Decoder
function inspect
source · line 25public override fun inspect(value: Float): ValueView
- Overrides
inspect· ValueInspector
Exposes the floating-point value through scalar inspection.
parameter value
source · line 25value: Float
property NEGATIVE_INFINITY
source · line 51public const val NEGATIVE_INFINITY: Float
get: public read-only
The negative unbounded floating-point value.
property MIN_VALUE
source · line 59public const val MIN_VALUE: Float
get: public read-only
The smallest positive subnormal value, not the most negative value.
function fromBits
source · line 69public fun fromBits(bits: Int): Float
Constructs a value from its exact representation bits, including any NaN payload or signed zero.
parameter bits
source · line 69bits: Int