Java BigDecimal Compare greaterThan(BigDecimal val1, BigDecimal val2)

Here you can find the source of greaterThan(BigDecimal val1, BigDecimal val2)

Description

greater Than

License

Apache License

Declaration

public static boolean greaterThan(BigDecimal val1, BigDecimal val2) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.math.BigDecimal;

public class Main {
    public static boolean greaterThan(BigDecimal val1, BigDecimal val2) {
        int compareValue = val1.compareTo(val2);
        return (compareValue > 0);
    }/*from w w  w  . jav a  2  s  .c  o m*/
}

Related

  1. compareToZeroOrNull(BigDecimal value)
  2. greaterEqualThan(BigDecimal val, double threshold)
  3. greaterThan(BigDecimal decimal, double number)
  4. GreaterThan(BigDecimal one, BigDecimal two)
  5. greaterThan(BigDecimal val, double threshold)
  6. GreaterThanOrEqual(BigDecimal one, BigDecimal two)
  7. greaterThanZero(BigDecimal d)
  8. greaterThanZero(BigDecimal is)
  9. isGreater(BigDecimal a, BigDecimal b)