|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.evanmclean.evlib.misc.Round
public final class Round
Round a double to a specified number of decimal places.
| Method Summary | |
|---|---|
static double |
round(double val,
int places)
Round the value to the specified number of decimal places. |
static double |
two(double val)
Round the value to two decimal places. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static double round(double val,
int places)
val - The value to round.places - The number of decimal places.
public static double two(double val)
val - The value to round.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||