← Standard library

ParsedNumber

struct ParsedNumber
import ParsedNumber from Wax;

The lexical scan result for a decimal prefix, including its significant digits and byte ranges. Use valid/outcome before consuming the mantissa. Ranges refer to the exact input span passed to ParseNumberString.

FloatParse.wax:34

Members

mantissafield

public uint64 mantissa

The accumulated leading decimal significand; tooManyDigits signals truncation requiring the slow path.

FloatParse.wax:39

exponentfield

public int64 exponent

The base-10 scale applied to the significand.

FloatParse.wax:43

negativefield

public bool negative

Whether the parsed prefix has a minus sign.

FloatParse.wax:47

validfield

public bool valid

Whether lexical numeric scanning succeeded.

FloatParse.wax:51

tooManyDigitsfield

public bool tooManyDigits

Whether more significant digits were present than the fast significand can retain.

FloatParse.wax:55

intPartStartfield

public int32 intPartStart

The integer-part start byte offset.

FloatParse.wax:59

intPartLenfield

public int32 intPartLen

The integer-part byte length.

FloatParse.wax:63

fracPartStartfield

public int32 fracPartStart

The fractional-part start byte offset.

FloatParse.wax:67

fracPartLenfield

public int32 fracPartLen

The fractional-part byte length.

FloatParse.wax:71

lastMatchfield

public int32 lastMatch

The first unconsumed byte offset, or reported failure location.

FloatParse.wax:75

outcomefield

public int32 outcome

A FloatParse outcome code describing lexical scanning.

FloatParse.wax:79

constructorconstructor

public constructor ()

Creates a zero-initialized, invalid scan record.

FloatParse.wax:83

ToStringmethod

public fn ToString() : string

Provided by the compiler.

ToStringBuffermethod

public fn ToStringBuffer(StringBuilder builder) : int32

Provided by the compiler.