Package tools.descartes.dlim.util
Class MathUtil
java.lang.Object
tools.descartes.dlim.util.MathUtil
Simple class for common mathematical util functions.
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
formatDoubleForDecimalPlaces
(double d, int decimalcount) Utility function to format a given double to the accuracy of decimalcount decimal places.
-
Method Details
-
formatDoubleForDecimalPlaces
Utility function to format a given double to the accuracy of decimalcount decimal places.- Parameters:
d
- The double to be formatted.decimalcount
- The amount of post period decimal places.- Returns:
- The formatted double as a String.
-