(Float, Integer, Rational)#round(half: :down)
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.
- numeric.c (round_half_down, int_round_half_down): support round-down mode.
NEWS: mention [Feature #12953] [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56900 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Updated by nobu (Nobuyoshi Nakada) almost 3 years ago
- Subject changed from (Float, Rational)#round(half: :down) to (Float, Integer, Rational)#round(half: :down)