Java BigDecimal Value Check isPositive(BigDecimal number)

Here you can find the source of isPositive(BigDecimal number)

Description

is Positive

License

Apache License

Declaration

public static boolean isPositive(BigDecimal number) 

Method Source Code


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

import java.math.BigDecimal;

public class Main {
    public static boolean isPositive(BigDecimal number) {

        return number.signum() == 1;
    }/*from   w  w  w  .  j  a va2 s  .  c  om*/
}

Related

  1. isNull(BigDecimal bdg)
  2. isNull(final BigDecimal s)
  3. isNullOrZero(BigDecimal number)
  4. isNullOrZero(BigDecimal value)
  5. isParseableBigDecimal(String string)
  6. isPositive(BigDecimal value)
  7. isPrimeNumber(BigDecimal inBd)
  8. isProfitable(BigDecimal ask, BigDecimal bid, BigDecimal fee, BigDecimal minProfit)
  9. isSameValue(final BigDecimal val1, final BigDecimal val2)