Project

General

Profile

Actions

Bug #4308

closed

Wrong Bignum calculation in some case.

Bug #4308: Wrong Bignum calculation in some case.

Added by shouichi (Shouichi Kamiya) about 15 years ago. Updated almost 15 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.2p136 (2010-12-25 revision 30365) [x86_64-darwin10.5.0]
Backport:
[ruby-core:34809]

Description

=begin
I tried to calculate variance of an array but calculation returns wrong result
when numbers are big.The problem also happens in 1.8.7-p330.

I attached a file that recreates The problem.
=end


Files

wrong_bignum_calc.rb (514 Bytes) wrong_bignum_calc.rb shouichi (Shouichi Kamiya), 01/24/2011 06:59 AM
Actions

Also available in: PDF Atom