Here you can find the source of mul(BigDecimal d1, BigDecimal d2)
public static BigDecimal mul(BigDecimal d1, BigDecimal d2)
//package com.java2s; //License from project: Apache License import java.math.BigDecimal; public class Main { public static double mul(double d1, double d2) { BigDecimal b1 = new BigDecimal(Double.toString(d1)); BigDecimal b2 = new BigDecimal(Double.toString(d2)); return b1.multiply(b2).doubleValue(); }/*from ww w.j a v a 2s . c o m*/ public static BigDecimal mul(BigDecimal d1, BigDecimal d2) { return d1.multiply(d2); } }