Project

General

Profile

Bug #5228

Integer#round fails on some big negative numbers

Added by Marc-Andre Lafortune over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
[ruby-core:39096]

Description

Integer#round fails for some big negative numbers:

(+25 * 10*70).round(-71) # => 30...00
(-25 * 10
*70).round(-71) # => -20...00, should be -30...00

History

#1 [ruby-core:39097] Updated by Marc-Andre Lafortune over 5 years ago

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

Fixed with r33061 & r33062

Also available in: Atom PDF