Actions
Bug #11995
closedBigDecimal#power fails for some values
Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-linux]
Description
$ irb -rbigdecimal
BigDecimal('-0.5').power(BigDecimal('0.2'))
Math::DomainError: Zero or negative argument for log
but
-0.5**0.2
=> -0.8705505632961241
The same is true for a few other exponent version I have tested. Is that feature or bug?
Actions
Like0
Like0