Java tutorial
//package com.java2s; import java.math.BigDecimal; public class Main { public static Double mul(Double v1, Double v2) { BigDecimal b1 = new BigDecimal(Double.toString(v1)); BigDecimal b2 = new BigDecimal(Double.toString(v2)); double m = b1.multiply(b2).doubleValue(); return m; } }