Files
rr3-apk/decompiled/sources/kotlin/math/MathKt__MathJVMKt.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

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);
}
}