Here you can find the source of multiply(BigDecimal a, BigDecimal b)
public static BigDecimal multiply(BigDecimal a, BigDecimal b)
//package com.java2s; import java.math.BigDecimal; import java.math.RoundingMode; public class Main { private static int scale = 5; public static BigDecimal multiply(BigDecimal a, BigDecimal b) { return a.multiply(b).setScale(scale, RoundingMode.HALF_UP); }/*from w ww. j a va 2 s . c o m*/ }