Java examples for java.math:BigDecimal Compare
Is one BigDecimal greater than or equals to another BigDecimal
//package com.java2s; import java.math.BigDecimal; public class Main { public static void main(String[] argv) throws Exception { BigDecimal d1 = new BigDecimal("1234"); BigDecimal d2 = new BigDecimal("1234"); System.out.println(ge(d1, d2)); }/*from w w w . java2 s. co m*/ public static boolean ge(BigDecimal d1, BigDecimal d2) { return d1.compareTo(d2) >= 0; } }