Package org.zkoss.pivot.impl.calc
Class Numbers
- java.lang.Object
-
- org.zkoss.pivot.impl.calc.Numbers
-
public class Numbers extends Object
Utilities of arithmetic operations.- Author:
- simonpai
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Numbers.MixedTypedNumber
-
Constructor Summary
Constructors Constructor Description Numbers()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Number
divide(Number n, int divisor)
Divide a Number by an int with automatic casting.static byte
getTypeBound(Number n)
Return the minimal variable type required to hold the number.
-
-
-
Field Detail
-
NULL
public static final byte NULL
null value.- See Also:
- Constant Field Values
-
INTEGER
public static final byte INTEGER
Integer type.- See Also:
- Constant Field Values
-
LONG
public static final byte LONG
Long type.- See Also:
- Constant Field Values
-
DOUBLE
public static final byte DOUBLE
Double type.- See Also:
- Constant Field Values
-
-