Class Math2


  • public class Math2
    extends java.lang.Object
    Additional math functions.
    • Constructor Summary

      Constructors 
      Constructor Description
      Math2()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean epsilonEquals​(double a, double b)  
      static boolean epsilonEquals​(float a, float b)  
      static int powerOf2​(int v)  
      static double roundHalfDown​(double v)  
      static double roundHalfUp​(double v)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Math2

        public Math2()
    • Method Detail

      • roundHalfUp

        public static double roundHalfUp​(double v)
      • roundHalfDown

        public static double roundHalfDown​(double v)
      • epsilonEquals

        public static boolean epsilonEquals​(float a,
                                            float b)
      • epsilonEquals

        public static boolean epsilonEquals​(double a,
                                            double b)
      • powerOf2

        public static int powerOf2​(int v)