(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.
#1 [ruby-core:78193] Updated by nobu (Nobuyoshi Nakada) 11 months ago
- Subject changed from (Float, Rational)#round(half: :down) to (Float, Integer, Rational)#round(half: :down)