BigDecimal.ROUND_HALF_EVEN

BigDecimal.ROUND_HALF_EVEN

Class Overview | Class Members | This Package | All Packages

Syntax
public static final int ROUND_HALF_EVEN
Description
Behave as for ROUND_HALF_UP if the digit to the left of the discarded fraction is odd; behave as for ROUND_HALF_DOWN if it's even. (Rounds towards the "nearest neighbor" unless both neighbors are equidistant, in which case, rounds towards the even neighbor.)