Java BigDecimal Compare GreaterThan(BigDecimal one, BigDecimal two)

Here you can find the source of GreaterThan(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 GreaterThan(BigDecimal one, BigDecimal two) 

Method Source Code


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

import java.math.BigDecimal;

public class Main {
    /**/*from   w w w. j  a  va  2 s. c  o  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 GreaterThan(BigDecimal one, BigDecimal two) {
        return (one.compareTo(two) > 0);
    }
}

Related

  1. compareTo(final BigDecimal b0, final BigDecimal b1)
  2. compareTo(final BigDecimal v1, final BigDecimal v2)
  3. compareToOne(BigDecimal x)
  4. compareToZeroOrNull(BigDecimal value)
  5. greaterThan(BigDecimal decimal, double number)
  6. greaterThan(BigDecimal val, double threshold)
  7. GreaterThanOrEqual(BigDecimal one, BigDecimal two)
  8. greaterThanZero(BigDecimal d)
  9. greaterThanZero(BigDecimal is)