Java BigDecimal Equal Equals(BigDecimal one, BigDecimal two)

Here you can find the source of Equals(BigDecimal one, BigDecimal two)

Description

Returns true if one == two

License

Open Source License

Parameter

Parameter Description
one The first number
two The second number

Return

True if one == two, false otherwise

Declaration

public static boolean Equals(BigDecimal one, BigDecimal two) 

Method Source Code


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

import java.math.BigDecimal;

public class Main {
    /**//w  w  w  . j a v  a2s .  co  m
     * Returns true if one == two
     * @param one The first number
     * @param two The second number
     * @return True if one == two, false otherwise
     */
    public static boolean Equals(BigDecimal one, BigDecimal two) {
        return (one.compareTo(two) == 0);
    }
}

Related

  1. equalBD(BigDecimal val1, BigDecimal val2)
  2. equals(BigDecimal a, BigDecimal b)
  3. equals(BigDecimal bd1, BigDecimal bd2)
  4. equals(BigDecimal decimal, double number)
  5. equals(BigDecimal left, BigDecimal right, int scale)
  6. equals(final BigDecimal b0, final BigDecimal b1, final double delta)
  7. equals(final BigDecimal pValue1, final BigDecimal pValue2)
  8. equalsBigDecimal(BigDecimal bd1, BigDecimal bd2)
  9. isEqual(BigDecimal aLhs, BigDecimal aRhs)