Optional argument `prec' to BigDecimal#power does not alter result precision:
Updated by mrkn (Kenta Murata) over 6 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
This issue was solved with changeset r43796.
David, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
ext/bigdecimal/bigdecimal.c (BigDecimal_power): Round the result value.
[Bug #8818] [ruby-core:56802]
test/bigdecimal/test_bigdecimal.rb: Add a test for the above fix.