Bug #6974

Functionality Loss in Bignum for Very Large Numbers (5.9 million digits)

Added by jks (john sikora) over 7 years ago. Updated 4 months ago.

Target version:
ruby -v:
ruby 1.9.3p194 (2012-04-20) [i386-mingw32]


The 'run' program for hwm = 10 runs fine in 1.9.2 (ruby 1.9.2p290 (2011-07-09) [i386-mingw32]) but it goes awry at coefficient 526 for 1.9.3. The numerator and denominator are correct so I suspect Bignum and not BigDecimal (the 'check' program checks this). Note that each run takes about 3 hours on my computer for hwm = 10. Both 1.9.2 and 1.9.3 work for hwm = 5 to 9 (in much less time).


cn_ruby_sc_1r9r3_bug_hwm_10_run.rb (4.2 KB) cn_ruby_sc_1r9r3_bug_hwm_10_run.rb run program jks (john sikora), 09/04/2012 12:00 PM
cn_ruby_sc_1r9r3_bug_hwm_10_check.rb (935 Bytes) cn_ruby_sc_1r9r3_bug_hwm_10_check.rb check numerator and denominator program jks (john sikora), 09/04/2012 12:00 PM

Related issues

Related to Ruby master - Bug #7242: Bignum mathematical accuracy regression in r31695Closed10/30/2012Actions


Updated by mame (Yusuke Endoh) about 7 years ago

  • Status changed from Open to Assigned
  • Assignee set to mrkn (Kenta Murata)

Mrkn, could you check this too?
Maybe the same causes as #7242.

Yusuke Endoh


Updated by naruse (Yui NARUSE) almost 7 years ago

  • Target version changed from 1.9.3 to 2.6

Updated by naruse (Yui NARUSE) almost 2 years ago

  • Target version deleted (2.6)

Updated by jeremyevans0 (Jeremy Evans) 4 months ago

  • Status changed from Assigned to Closed

Also available in: Atom PDF