Package Helpers
Class Round
java.lang.Object
Helpers.Round
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic double
round
(double value, int decimal) Rounds the passed value to the specified number of decimals.
-
Constructor Details
-
Round
public Round()
-
-
Method Details
-
round
public static double round(double value, int decimal) Rounds the passed value to the specified number of decimals.- Parameters:
value
- The value to round.decimal
- The number of figures after decimal point.- Returns:
- The rounded value.
-