TorchLean API

FloatLib.Numerics.Exact.RadixText.Runtime

Positional character conversion #

Printing and scanning share an explicit radix. The scanner accepts a digit decoder and leaves the first nondigit and its suffix unconsumed. Magnitude parsing adds a radix point and delegates exponent syntax to its caller; fractional digits each subtract fractionScale exponent units. Decimal and hexadecimal text use the same implementation with different syntax parameters.

Digits in printing order, including one digit for zero.

Instances For
    def FloatLib.Numerics.RadixText.scanDigits (characters : List Char) (accumulator radix : ) (readDigit : CharOption ) :

    Read a maximal digit prefix, returning its value, length, and unconsumed suffix.

    Instances For
      def FloatLib.Numerics.RadixText.parseMagnitude (characters : List Char) (radix : ) (readDigit : CharOption ) (readExponent : List CharOption ) (fractionScale : ) :

      Parse an unsigned significand and exponent with caller-supplied radix and exponent syntax.

      Instances For