Here you can find the source of add(double a, double b)
public static double add(double a, double b)
//package com.java2s; //License from project: Apache License import java.math.BigDecimal; public class Main { public static double add(double a, double b) { return BigDecimal.valueOf(a).add(BigDecimal.valueOf(b)).doubleValue(); }// www. j a va2s. com }