Skip to content

Commit 12f6a2b

Browse files
committed
Clear BigDecimal#to_f specs
1 parent 63b72e8 commit 12f6a2b

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

spec/tags/library/bigdecimal/to_f_tags.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/main/java/org/truffleruby/stdlib/bigdecimal/BigDecimalNodes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1449,7 +1449,7 @@ public double toFSpecial(DynamicObject value,
14491449
return Double.POSITIVE_INFINITY;
14501450
case NEGATIVE_ZERO:
14511451
negZeroProfile.enter();
1452-
return 0.0;
1452+
return -0.0;
14531453
case NAN:
14541454
nanProfile.enter();
14551455
return Double.NaN;

0 commit comments

Comments
 (0)