corda/classpath/java/lang/Math.java

78 lines
1.1 KiB
Java

package java.lang;
public final class Math {
private Math() { }
public static int abs(int v) {
return (v < 0 ? -v : v);
}
public static long round(double v) {
return (long) (v + 0.5);
}
public static int round(float v) {
return (int) (v + 0.5);
}
public static double floor(double v) {
// todo
return 0;
}
public static double ceil(double v) {
// todo
return 0;
}
public static double exp(double v) {
// todo
return 0;
}
public static double log(double v) {
// todo
return 0;
}
public static double cos(double v) {
// todo
return 0;
}
public static double sin(double v) {
// todo
return 0;
}
public static double tan(double v) {
// todo
return 0;
}
public static double acos(double v) {
// todo
return 0;
}
public static double asin(double v) {
// todo
return 0;
}
public static double atan(double v) {
// todo
return 0;
}
public static double sqrt(double v) {
// todo
return 0;
}
public static double pow(double v, double e) {
// todo
return 0;
}
}