Java Number Add add(Double v1, Double v2)

Here you can find the source of add(Double v1, Double v2)

Description

add

License

Open Source License

Declaration

public static Double add(Double v1, Double v2) 

Method Source Code


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

Related

  1. add(Double v1, Double v2)
  2. add(double v1, double v2)
  3. add(Double v1, Double v2)
  4. add(double v1, double v2)
  5. add(double v1, double v2)
  6. add(double... ds)
  7. add(Double... ds)
  8. add(final Number a, final Number b)
  9. add(final String start, final String... values)