Here you can find the source of round(BigDecimal value)
public static BigDecimal round(BigDecimal value)
//package com.java2s; //License from project: Open Source License import java.math.BigDecimal; public class Main { public static BigDecimal round(BigDecimal value) { return value.setScale(2, BigDecimal.ROUND_HALF_UP); }// www. ja v a 2s .c o m }