TorchLean API

FloatLib.Numerics.Exact.HexText.Runtime

Exact hexadecimal external character sequences #

IEEE 754 §5.12.3 uses a hexadecimal significand and a mandatory decimal binary exponent: -0x1.ap+3 denotes -13. The positional scanner, signs and exponent integer parser are shared with decimal input. No host floating point is used.

Decode an ASCII hexadecimal digit, accepting either letter case.

Instances For

    A hexadecimal exponent must have a p marker and a signed decimal integer.

    Instances For

      Decode a hexadecimal significand with a 0x prefix and p exponent to an exact signed dyadic.

      Instances For

        Parse a hexadecimal external character sequence without discarding signed zero.

        Instances For

          Exact IEEE hexadecimal spelling; the significand is integral and the exponent is binary.

          Instances For

            Exact hexadecimal output preserves all three dyadic fields.

            Instances For

              Express the dyadic magnitude as a coefficient times an integral power of sixteen.

              Instances For
                def FloatLib.Numerics.HexText.significant (roundMagnitude : Bool) (value : Dyadic) (digits : ℕ+) :

                Round to a requested hexadecimal digit count using the common radix precision algorithm.

                Instances For