Project

General

Profile

Actions

Feature #12953

closed

(Float, Integer, Rational)#round(half: :down)

Added by shyouhei (Shyouhei Urabe) over 7 years ago. Updated over 7 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:78192]

Description

I learned that The Japanese Ministry of Health, Labor and Welfare requires that the insured burden amount of employment insurance be calculated in round half down mode. Details: http://www.mhlw.go.jp/topics/2005/04/tp0425-2.html

Given there is a real-world situation where half-down is actually mandatory, I think we should implement the (currently lacking) half: :down option.


Related issues 1 (0 open1 closed)

Related to Ruby master - Bug #12952: Incompatibility of a method signature between `Float#round` and `BigDecimal#round`Closedmrkn (Kenta Murata)Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0