Java BigDecimal Compare lessThan(BigDecimal val1, BigDecimal val2)

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

Description

less Than

License

Apache License

Declaration

public static boolean lessThan(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 lessThan(BigDecimal val1, BigDecimal val2) {
        int compareValue = val1.compareTo(val2);
        return (compareValue < 0);
    }/*from   w  w  w .j a  va 2s  . c om*/
}

Related

  1. GreaterThanOrEqual(BigDecimal one, BigDecimal two)
  2. greaterThanZero(BigDecimal d)
  3. greaterThanZero(BigDecimal is)
  4. isGreater(BigDecimal a, BigDecimal b)
  5. isGreaterThanOne(@Nonnull final BigDecimal aValue)
  6. lessThanZero(BigDecimal decimal)