How to compare BigInteger with double
You have to convert both values to BigDecimal and then you can compare it: BigInteger bi = new BigInteger(“1”); BigDecimal db = new BigDecimal(bi); db.compareTo(new BigDecimal(1.3d));
You have to convert both values to BigDecimal and then you can compare it: BigInteger bi = new BigInteger(“1”); BigDecimal db = new BigDecimal(bi); db.compareTo(new BigDecimal(1.3d));