Package Helpers

Class Round

java.lang.Object
Helpers.Round

public class Round extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static double
    round(double value, int decimal)
    Rounds the passed value to the specified number of decimals.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.