public final class Math4Long
extends java.lang.Object
Constructor and Description |
---|
Math4Long() |
Modifier and Type | Method and Description |
---|---|
static double |
displayDouble(double nb) |
static double |
displayDouble(double nb,
int digitNb) |
static java.lang.String |
displayMillisecTime(long t) |
static java.lang.String |
displaySecondTime(long t) |
static double |
round(double d)
rounds a double keeping only "n" digits (default way) considering this
double is representing a time measurement.
|
static double |
round(double d,
int size)
refines the rounding of a double keeping only "n" digits considering the
number of measures used to calculate this double (typical of average..)
|
public static double round(double d)
d
- the double to be roundedpublic static double round(double d, int size)
d
- the double to be roundedsize
- is the number of measures to compute this doublepublic static double displayDouble(double nb, int digitNb)
public static double displayDouble(double nb)
public static java.lang.String displayMillisecTime(long t)
t
- time in millisecond to be displayedpublic static java.lang.String displaySecondTime(long t)
t
- time in second to be displayed