#1042: BigMath::log and BigMath:exp are broken -------------------------------------+-------------------------------------- Reporter: hghoehne@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: -------------------------------------+-------------------------------------- Comment(by hghoehne@…): This regression was introduced with the latest import from the ruby 1.9 trunk several weeks ago. {{{ macruby_select 0.6 -ve 'require "bigdecimal"; require "bigdecimal/math"; include BigMath; p exp(log(BigDecimal("20.0"), 200), 200).to_s("E")' MacRuby version 0.6 (ruby 1.9.0) [universal-darwin10.0, x86_64] "0.19999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999995794303783081384926E2" }}} it took me some time to figure out why my numerical calculations stopped working. Unfortunately printf is broken for numeric types since version 0.4, which makes console output really hard to check. This bug makes also the results from the benchmark module unreadable. -- Ticket URL: <http://www.macruby.org/trac/ticket/1042#comment:5> MacRuby <http://macruby.org/>