Project

General

Profile

Actions

Bug #10465

closed

Bug of multiplication between Bignums

Added by Nishihama (Kohji Nishihama) about 10 years ago. Updated about 10 years ago.

Status:
Closed
Target version:
-
ruby -v:
ruby 2.1.4p265 (2014-10-27 revision 48166) [i386-mingw32]
[ruby-core:66044]

Description

I calculate multiplication of a certain pear of Bignums,
and a wrong result is outputted.

OS:Windows Vista Home Premium。
bug.rb works on
ruby 1.8.7 (2008-08-11 patchlevel 72) [i386-mswin32],
ruby 1.9.3p484 (2013-11-22) [i386-mingw32],
ruby 2.0.0p353 (2013-11-22) [i386-mingw32].
It doesn't work on
ruby 2.1.3p242 (2014-09-19 revision 47630) [i386-mingw32]
and ruby 2.1.4p265 (2014-10-27 revision 48166) [i386-mingw32].

$ ruby bug.rb 5470148495 # wrong number 1943359375 # correct number #The output is too long, and I wrote the only last 10 digit.


Files

bug.rb (16.9 KB) bug.rb Nishihama (Kohji Nishihama), 11/01/2014 04:18 AM

Related issues 1 (0 open1 closed)

Copied from Ruby master - Bug #10464: Bignum同士の乗算の不具合ClosedNishihama (Kohji Nishihama)11/01/2014Actions

Updated by Nishihama (Kohji Nishihama) about 10 years ago

  • Copied from Bug #10464: Bignum同士の乗算の不具合 added

Updated by akr (Akira Tanaka) about 10 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

Applied in changeset r48222.


Updated by nagachika (Tomoyuki Chikanaga) about 10 years ago

  • Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN to 2.0.0: DONTNEED, 2.1: REQUIRED

Updated by nagachika (Tomoyuki Chikanaga) about 10 years ago

  • Backport changed from 2.0.0: DONTNEED, 2.1: REQUIRED to 2.0.0: DONTNEED, 2.1: DONE

Backported into ruby_2_1 at r48272.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0