We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a58c816 commit 4fa66e4Copy full SHA for 4fa66e4
src/main/java/org/truffleruby/core/numeric/FloatNodes.java
@@ -900,7 +900,7 @@ protected static boolean hasNoExp(double value) {
900
901
protected static boolean hasLargeExp(double value) {
902
double abs = Math.abs(value);
903
- return (abs >= 1_000_000_000_000_000.0);
+ return Double.isFinite(abs) && (abs >= 1_000_000_000_000_000.0);
904
}
905
906
protected static boolean hasSmallExp(double value) {
0 commit comments