Fix float rounding issues. #668

merged 1 commit into from Apr 28, 2013


None yet

2 participants


This pull request fixes the 6 failing rubyspecs in core/float/round_spec.rb.

The Double → String → BigDecimal → BigInteger conversion is probably not optimal from a perf perspective, but AFAICT it’s the only to get the correct precision when converting from double to BigInteger.

@headius headius merged commit baa048a into jruby:master Apr 28, 2013

1 check passed

default The Travis build passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment