We're updating the issue view to help you get more done. 

RFE: New BigDecimal rounding modes

Description

I would like to suggest adding to the BigDecimal class two new rounding modes:
ROUND_HALF_FLOOR and ROUND_HALF_CEILING. I suppose their meaning is obvious
from the names.

I solved my problem that required the proposed ROUND_HALF_CEILING by adding 0.5
and then using ROUND_FLOOR, but this is less efficient than a builtin mode.

Environment

Status

Assignee

Douglas Felt

Reporter

TracBot

Labels

Time Needed

Days

tracCreated

Nov 10, 2003, 7:00 PM

tracOwner

doug

tracProject

ICU4J

tracReporter

bas@a3f3a7b7bc593c6c

tracStatus

accepted

tracWeeks

0.8

Components

Priority

trivial