Skip to content

Fix Float#floor and Float#round for some edge cases#7566

Merged
enebo merged 3 commits intojruby:masterfrom
k77ch7:ruby-3.1-fix-float-floor-round
Jan 8, 2023
Merged

Fix Float#floor and Float#round for some edge cases#7566
enebo merged 3 commits intojruby:masterfrom
k77ch7:ruby-3.1-fix-float-floor-round

Conversation

@k77ch7
Copy link
Contributor

@k77ch7 k77ch7 commented Jan 8, 2023

This change is porting from mri(numeric.c and rational.c).

The following tests will pass.

  • test_floor_ceil_ndigits in test/mri/ruby/test_numeric.rb
  • test_float_round_ndigits in test/mri/ruby/test_numeric.rb

k77ch7 added 2 commits January 8, 2023 14:35
This change is porting from mri(numeric.c and rational.c).

The following tests will pass.
 * test_floor_ceil_ndigits in test/mri/ruby/test_numeric.rb
 * test_float_round_ndigits in test/mri/ruby/test_numeric.rb
@enebo enebo added this to the JRuby 9.4.1.0 milestone Jan 8, 2023
@enebo enebo merged commit 764481a into jruby:master Jan 8, 2023
@enebo
Copy link
Member

enebo commented Jan 8, 2023

nice! Love seeing rounding fixes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants