Java BigDecimal Equal equalsBigDecimal(BigDecimal bd1, BigDecimal bd2)

Here you can find the source of equalsBigDecimal(BigDecimal bd1, BigDecimal bd2)

Description

equals Big Decimal

License

Open Source License

Declaration

public static boolean equalsBigDecimal(BigDecimal bd1, BigDecimal bd2) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.math.BigDecimal;

public class Main {

    public static boolean equalsBigDecimal(BigDecimal bd1, BigDecimal bd2) {
        if (bd1.compareTo(bd2) == 0) {
            return true;
        } else {/*from  ww  w.  ja va 2s .  co m*/
            return false;
        }
    }
}

Related

  1. equals(BigDecimal decimal, double number)
  2. equals(BigDecimal left, BigDecimal right, int scale)
  3. Equals(BigDecimal one, BigDecimal two)
  4. equals(final BigDecimal b0, final BigDecimal b1, final double delta)
  5. equals(final BigDecimal pValue1, final BigDecimal pValue2)
  6. isEqual(BigDecimal aLhs, BigDecimal aRhs)
  7. isEqual(BigDecimal n1, BigDecimal n2, int precision)
  8. isEqual(BigDecimal value1, BigDecimal value2)
  9. isEqual(final BigDecimal value1, final BigDecimal value2)