Project

General

Profile

Actions

Bug #9979

closed

Regression: BigDecimal::ROUND_HALF_DOWN/ROUND_HALF_EVEN behave incorrectly

Added by josephleniston (Joseph Leniston) almost 10 years ago. Updated almost 5 years ago.

Status:
Closed
Target version:
-
ruby -v:
2.1.2
[ruby-core:63326]

Description

The incorrect behaviour is that all fractional values between 0.5 (inclusive) and 0.6 (non-inclusive) are subject to the rounding policy for 'half', whereas it should only be applied for fractional values exactly equal to 0.5.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0