Here you can find the source of add(Double v1, Double v2)
public static Double add(Double v1, Double v2)
//package com.java2s; import java.math.BigDecimal; public class Main { public static Double add(Double v1, Double v2) { BigDecimal b1 = new BigDecimal(v1.toString()); BigDecimal b2 = new BigDecimal(v2.toString()); return b1.add(b2).doubleValue(); }// w w w .j a v a2 s.com }