Skip to content

Commit

Permalink
[GR-18163] Untag passing Float#round spec
Browse files Browse the repository at this point in the history
PullRequest: truffleruby/4465
  • Loading branch information
eregon authored and andrykonchin committed Jan 31, 2025
2 parents d94ffd1 + cdb4aef commit f90738c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion spec/tags/core/float/round_tags.txt

This file was deleted.

2 changes: 1 addition & 1 deletion src/main/ruby/truffleruby/core/truffle/float_operations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module Truffle
module FloatOperations
class << self
def round_overflow?(ndigits, exponent)
ndigits >= Float::DIG + 2 - (exponent > 0 ? exponent/4 : exponent/3 - 1)
ndigits >= Float::DIG + 2 - (exponent > 0 ? exponent / 4 : exponent / 3 - 1)
end

def round_underflow?(ndigits, exponent)
Expand Down

0 comments on commit f90738c

Please sign in to comment.