Java Number Add add(double a, double b)

Here you can find the source of add(double a, double b)

Description

add

License

Apache License

Declaration

public static double add(double a, double b) 

Method Source Code


//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
}

Related

  1. add(Double a, Double b)
  2. add(Double v1, Double v2)
  3. add(double v1, double v2)
  4. add(double v1, double v2)