Android examples for java.lang:Math
is BigDecimal Positive
//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; } }