- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
25 lines
686 B
Java
25 lines
686 B
Java
package kotlin.math;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public abstract class MathKt__MathJVMKt extends MathKt__MathHKt {
|
|
public static int roundToInt(double d) {
|
|
if (Double.isNaN(d)) {
|
|
throw new IllegalArgumentException("Cannot round NaN value.");
|
|
}
|
|
if (d > 2.147483647E9d) {
|
|
return Integer.MAX_VALUE;
|
|
}
|
|
if (d < -2.147483648E9d) {
|
|
return Integer.MIN_VALUE;
|
|
}
|
|
return (int) Math.round(d);
|
|
}
|
|
|
|
public static int roundToInt(float f) {
|
|
if (Float.isNaN(f)) {
|
|
throw new IllegalArgumentException("Cannot round NaN value.");
|
|
}
|
|
return Math.round(f);
|
|
}
|
|
}
|