object Companion
source · line 273public companion : ValueEncoder<Double>, ValueDecoder<Double>, ValueInspector<Double>
- Supertype
ValueEncoder<Double> - Supertype
ValueDecoder<Double> - Supertype
ValueInspector<Double>
Representation constants, raw-bit construction, and scalar codec operations.
property MIN_VALUE
source · line 311public const val MIN_VALUE: Double
get: public read-only
The smallest positive subnormal value, not the most negative value.
function encode
source · line 283public override fun encode(value: Double, encoder: Encoder): Unit
- Overrides
encode· ValueEncoder
Writes the value through the encoder's matching floating-point scalar operation.
parameter encoder
source · line 283encoder: Encoder
parameter value
source · line 283value: Double
property MAX_VALUE
source · line 307public const val MAX_VALUE: Double
get: public read-only
The largest finite positive value.
property POSITIVE_INFINITY
source · line 299public const val POSITIVE_INFINITY: Double
get: public read-only
The positive unbounded floating-point value.
function decode
source · line 289public override fun decode(decoder: Decoder): Double
- Overrides
decode· ValueDecoder
Reads the value through the decoder's matching floating-point scalar operation.
parameter decoder
source · line 289decoder: Decoder
property MIN_NORMAL
source · line 315public const val MIN_NORMAL: Double
get: public read-only
The smallest positive normal value.
function inspect
source · line 277public override fun inspect(value: Double): ValueView
- Overrides
inspect· ValueInspector
Exposes the floating-point value through scalar inspection.
parameter value
source · line 277value: Double
property NEGATIVE_INFINITY
source · line 303public const val NEGATIVE_INFINITY: Double
get: public read-only
The negative unbounded floating-point value.
property NaN
source · line 295public const val NaN: Double
get: public read-only
A not-a-number value. Use isNaN to classify NaNs.
function fromBits
source · line 321public fun fromBits(bits: Long): Double
Constructs a value from its exact representation bits, including any NaN payload or signed zero.
parameter bits
source · line 321bits: Long