mirror of
https://github.com/corda/corda.git
synced 2025-01-08 14:03:06 +00:00
90 lines
1.3 KiB
Java
90 lines
1.3 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 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);
|
|
}
|
|
|
|
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;
|
|
}
|
|
}
|