← Standard library

AdjustedMantissa

struct AdjustedMantissa
import AdjustedMantissa from Wax;

A parser-specific mantissa/exponent pair. Interpretation depends on the producing helper: extended values use a binary exponent, while rounded results use fields ready for IEEE packing. A negative power2 from ComputeFloat means that its fast path failed; do not pack that failure as a result.

FloatParse.wax:107

Members

mantissafield

public uint64 mantissa

The significand or rounded mantissa for the current parser stage.

FloatParse.wax:111

power2field

public int32 power2

The binary exponent or encoded exponent for the current stage. Follow the producing helper's contract.

FloatParse.wax:116

constructorconstructor

public constructor (uint64 mantissa, int32 power2)

Stores a mantissa/exponent pair without validation.

FloatParse.wax:120

ToStringmethod

public fn ToString() : string

Provided by the compiler.

ToStringBuffermethod

public fn ToStringBuffer(StringBuilder builder) : int32

Provided by the compiler.