Class TemplateNumberUtils

java.lang.Object
com.spun.util.parser.TemplateNumberUtils

public class TemplateNumberUtils
extends Object
  • Field Details

  • Method Details

    • isZero

      public static boolean isZero​(double d)
    • isZero

      public static boolean isZero​(Number d)
    • asInt

      public static int asInt​(Number d)
    • isZero

      public static boolean isZero​(double d, double delta)
    • getScaling

      public int getScaling​(Integer have, Integer max, Integer scale)
    • doArithmetic

      public static double doArithmetic​(int arg1, String operation, int arg2)
    • doArithmetic

      public static double doArithmetic​(String[] params)
    • max

      public static TemplateDouble max​(Number... numbers)
    • max

      public static TemplateDouble max​(Number n1, Number n2, Number n3)