BigDecimal.ROUND_HALF_UP

BigDecimal.ROUND_HALF_UP

Class Overview | Class Members | This Package | All Packages

Syntax
public static final int ROUND_HALF_UP
Description
Behave as for ROUND_UP if the discarded fraction is >= .5; otherwise, behave as for ROUND_DOWN. (Rounds towards "nearest neighbor" unless both neighbors are equidistant, in which case rounds up.)