jas2.hist
Class JASHistUtil
- java.lang.Object
-
- jas2.hist.JASHistUtil
-
public class JASHistUtil extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor and Description JASHistUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static doubleroundDown(double x, int order)Round number down (closer to Negative Infinity): "order" defines which significant digit is rounded, order >= 0 roundDown(234.5, 0) -> 200.0 roundDown(234.5, 1) -> 230.0 roundDown(234.5, 2) -> 234.0static doubleroundUp(double x, int order)Round number up (closer to Positive Infinity), "order" defines which significant digit is rounded, order >= 0 roundUp(234.5, 0) -> 300.0 roundUp(234.5, 1) -> 240.0 roundUp(234.5, 2) -> 235.0
-
-
-
Method Detail
-
roundDown
public static double roundDown(double x, int order)Round number down (closer to Negative Infinity): "order" defines which significant digit is rounded, order >= 0 roundDown(234.5, 0) -> 200.0 roundDown(234.5, 1) -> 230.0 roundDown(234.5, 2) -> 234.0
-
roundUp
public static double roundUp(double x, int order)Round number up (closer to Positive Infinity), "order" defines which significant digit is rounded, order >= 0 roundUp(234.5, 0) -> 300.0 roundUp(234.5, 1) -> 240.0 roundUp(234.5, 2) -> 235.0
-
-
DataMelt 3.0 © DataMelt by jWork.ORG