Module swim.math
Package swim.math

Class Precision

  • All Implemented Interfaces:
    Debug

    public final class Precision
    extends Object
    implements Debug
    • Method Detail

      • isDefined

        public boolean isDefined()
      • isHalf

        public boolean isHalf()
      • isSingle

        public boolean isSingle()
      • isDouble

        public boolean isDouble()
      • bits

        public int bits()
      • bytes

        public int bytes()
      • toValue

        public Value toValue()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • debug

        public <T> Output<T> debug​(Output<T> output)
        Description copied from interface: Debug
        Writes a developer readable, debug-formatted string representation of this object to output.
        Specified by:
        debug in interface Debug
        Returns:
        the continuation of the output.
      • undefined

        public static Precision undefined()
      • fromBits

        public static Precision fromBits​(int bits)