Class StiMath

java.lang.Object
com.stimulsoft.base.utils.StiMath

public class StiMath extends Object
StiMath helper to operate with Mathmatic commands Copyright Stimulsoft
  • Method Details

    • round

      public static double round(Double value, Double digits)
      Round value to digits after point
      Parameters:
      value -
      digits -
      Returns:
    • round

      public static double round(double value, int digits)
      Round value to digits after point
      Parameters:
      value -
      digits -
      Returns:
    • roundS

      public static String roundS(double value, int digits)
    • round

      public static double round(float value, int digits)
      Round value to digits after point
      Parameters:
      value -
      digits -
      Returns:
    • roundUp

      public static int roundUp(Double value)
      Round to upper value
      Parameters:
      value -
      Returns:
    • roundDown

      public static int roundDown(Double value)
      Round to down value
      Parameters:
      value -
      Returns:
    • inscribe

      public static double inscribe(double value, double min, double max)
      Inscribe value to min/max values
      Parameters:
      value -
      min -
      max -
      Returns: