public class TemplateNumberUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static TemplateNumberUtils |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
static int |
asInt(Number d) |
static double |
doArithmetic(int arg1,
String operation,
int arg2) |
static double |
doArithmetic(String[] params) |
int |
getScaling(Integer have,
Integer max,
Integer scale) |
static boolean |
isZero(double d) |
static boolean |
isZero(double d,
double delta) |
static boolean |
isZero(Number d) |
static TemplateDouble |
max(Number... numbers) |
static TemplateDouble |
max(Number n1,
Number n2,
Number n3) |
public static TemplateNumberUtils INSTANCE
public static boolean isZero(double d)
public static boolean isZero(Number d)
public static int asInt(Number d)
public static boolean isZero(double d,
double delta)
public static double doArithmetic(int arg1,
String operation,
int arg2)
public static double doArithmetic(String[] params)
public static TemplateDouble max(Number... numbers)
public static TemplateDouble max(Number n1, Number n2, Number n3)
Copyright © 2021. All rights reserved.