Project

General

Profile

Actions

Bug #740

closed

bigdecimal rounding errors in 1.8.x

Added by rogerdpack (Roger Pack) over 15 years ago. Updated almost 13 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
[ruby-core:19791]

Description

=begin
in 1.8.7:

BigDecimal.new("0.5").round(-4).to_i
=> 10000

in 1.9 I think it works.
Thanks!
=end

Actions #2

Updated by matz (Yukihiro Matsumoto) over 15 years ago

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

=begin
Applied in changeset r20228.
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0