Package com.stimulsoft.base.utils
Class StiMath
java.lang.Object
com.stimulsoft.base.utils.StiMath
StiMath helper to operate with Mathmatic commands
Copyright Stimulsoft
-
Method Summary
Modifier and TypeMethodDescriptionstatic doubleinscribe(double value, double min, double max) Inscribe value to min/max valuesstatic doubleround(double value, int digits) Round value to digits after pointstatic doubleround(float value, int digits) Round value to digits after pointstatic doubleRound value to digits after pointstatic intRound to down valuestatic StringroundS(double value, int digits) static intRound to upper value
-
Method Details
-
round
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
-
round
public static double round(float value, int digits) Round value to digits after point- Parameters:
value-digits-- Returns:
-
roundUp
Round to upper value- Parameters:
value-- Returns:
-
roundDown
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:
-