is BigDecimal Positive - Android java.lang

Android examples for java.lang:Math

Description

is BigDecimal Positive

Demo Code


//package com.java2s;

import java.math.BigDecimal;

public class Main {
    public static boolean isPositive(BigDecimal value) {
        return greater(value, BigDecimal.ZERO);
    }/*from w  w  w .  j  a  v a2  s.c  o  m*/

    public static boolean greater(BigDecimal first, BigDecimal second) {
        return first.compareTo(second) == 1;
    }
}

Related Tutorials