classpath progress

This commit is contained in:
Joel Dice
2007-07-29 17:38:35 -06:00
parent a2bd7d0668
commit 5e336544f5
3 changed files with 44 additions and 0 deletions

View File

@ -7,6 +7,18 @@ public final class Math {
return (v < 0 ? -v : v);
}
public static long abs(long v) {
return (v < 0 ? -v : v);
}
public static float abs(float v) {
return (v < 0 ? -v : v);
}
public static double abs(double v) {
return (v < 0 ? -v : v);
}
public static long round(double v) {
return (long) (v + 0.5);
}