Class Arithmetic
java.lang.Object
com.codingapi.springboot.framework.math.Arithmetic
-
Constructor Summary
ConstructorsConstructorDescriptionArithmetic(double value) Arithmetic(float value) Arithmetic(int value) Arithmetic(long value) Arithmetic(String value) -
Method Summary
Modifier and TypeMethodDescriptionadd(double val) add(float val) add(int val) add(long val) add(Arithmetic val) div(double val) div(float val) div(int val) div(long val) div(Arithmetic val) doublefloatintlonggetValue()halfUpScale(int scale) mul(double val) mul(float val) mul(int val) mul(long val) mul(Arithmetic val) static Arithmeticone()static Arithmeticparse(double value) static Arithmeticparse(float value) static Arithmeticparse(int value) static Arithmeticparse(long value) static Arithmeticsub(double val) sub(float val) sub(int val) sub(long val) sub(Arithmetic val) static Arithmeticzero()
-
Constructor Details
-
Arithmetic
-
Arithmetic
public Arithmetic(int value) -
Arithmetic
public Arithmetic(float value) -
Arithmetic
public Arithmetic(double value) -
Arithmetic
public Arithmetic(long value)
-
-
Method Details
-
zero
-
one
-
parse
-
parse
-
parse
-
parse
-
parse
-
add
-
add
-
add
-
add
-
add
-
add
-
sub
-
sub
-
sub
-
sub
-
sub
-
sub
-
mul
-
mul
-
mul
-
mul
-
mul
-
mul
-
div
-
div
-
div
-
div
-
div
-
div
-
getValue
-
getStringValue
-
getBigIntegerValue
-
getIntValue
public int getIntValue() -
getDoubleValue
public double getDoubleValue() -
getFloatValue
public float getFloatValue() -
getLongValue
public long getLongValue() -
halfUpScale2
-
halfUpScale
-