Package studio.magemonkey.genesis.misc
Class MathTools
java.lang.Object
studio.magemonkey.genesis.misc.MathTools
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic doublestatic doublestatic doublecutNumber(double d, int toCut, int decimalPlace) static StringdisplayNumber(double d, int decimalPlace) static StringdisplayNumber(double d, List<String> formatting, boolean integerValue) static StringdisplayNumber(double d, GenesisPriceType priceType) getFormatting(GenesisPriceType priceType) static voidstatic booleanisIntegerValue(GenesisPriceType priceType) static StringremoveNonNumeric(String str) static doubleround(double value, int places) static String
-
Field Details
-
BEGIN
- See Also:
-
END
- See Also:
-
-
Constructor Details
-
MathTools
public MathTools()
-
-
Method Details
-
init
-
transform
-
removeNonNumeric
-
round
public static double round(double value, int places) -
cutNumber
public static double cutNumber(double d, int toCut, int decimalPlace) -
displayNumber
-
getFormatting
-
isIntegerValue
-
displayNumber
-
displayNumber
-
calculate
-
calculate
-