TorchLean API

FloatLib.Floats.Formats.Posit.Semantics.Exact.Runtime

Executable exact rational semantics of posits #

Every ordinary posit word denotes an exact rational. The unique NaR word denotes ExceptionalValue.notAReal and has no partial rational value.

@[inline]

Forget tapered field metadata into the common exact rational value domain.

Instances For
    @[inline]

    Recover the exact rational value of an ordinary decoded value; NaR returns none.

    Instances For
      @[inline]

      Complete exact rational semantics of every posit word.

      Instances For
        @[inline]

        Exact rational represented by an ordinary word, or none exactly for NaR.

        Instances For