Here you can find the source of Equals(BigDecimal one, BigDecimal two)
Parameter | Description |
---|---|
one | The first number |
two | The second number |
public static boolean Equals(BigDecimal one, BigDecimal two)
//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); } }