From: dolzenko@... Date: 2016-01-15T15:19:44+00:00 Subject: [ruby-core:72879] [Ruby trunk - Bug #11995] [Open] BigDecimal#power fails for some values Issue #11995 has been reported by Evgeniy Dolzhenko. ---------------------------------------- Bug #11995: BigDecimal#power fails for some values https://bugs.ruby-lang.org/issues/11995 * Author: Evgeniy Dolzhenko * Status: Open * Priority: Normal * Assignee: * ruby -v: ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-linux] * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN ---------------------------------------- $ 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? -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>