Library / Numbers / Numeric types / DecimalText
CLASS
DecimalText
Methods 1
METHOD parseDecimalParts(REFERENCE String s) RETURNS | DecimalPartsreads
Scan EXACT decimal text into its (coefficient, exponent) parts — an optional sign, integer digits, and an optional '.' with fractional digits ("19.99", "-0.01", "100", "+5.0"). The coefficient is every digit as a signed int128; the exponent is −(fractional digit count), so the text's scale is preserved ("1.00" → coefficient 100, exponent −2). Fallible: empty input, a stray character, a second '.', no digits, or int128-overflow of the coefficient.