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 BigDecimal add(double v1, double v2) 

Method Source Code


//package com.java2s;
import java.math.BigDecimal;

public class Main {

    public static BigDecimal add(String v1, String v2) {

        return add(new BigDecimal(v1), new BigDecimal(v2));
    }/*from ww w.  ja v  a 2s .c o  m*/

    public static BigDecimal add(double v1, double v2) {

        return add(new BigDecimal(v1), new BigDecimal(v2));
    }

    public static BigDecimal add(BigDecimal v1, BigDecimal v2) {

        return v1.add(v2);
    }
}

Related

  1. add(double a, double b)
  2. add(Double a, Double b)
  3. add(double v1, double v2)
  4. add(Double v1, Double v2)
  5. add(Double v1, Double v2)
  6. add(double v1, double v2)
  7. add(double v1, double v2)
  8. add(Double v1, Double v2)