Here you can find the source of isLess(float formateValue1, float formateValue2)
public static boolean isLess(float formateValue1, float formateValue2)
//package com.java2s; //License from project: Apache License import java.math.BigDecimal; public class Main { public static boolean isLess(float formateValue1, float formateValue2) { BigDecimal n1 = new BigDecimal(formateValue1); BigDecimal n2 = new BigDecimal(formateValue2); return n1.compareTo(n2) == -1 ? true : false; }/* w ww .ja v a 2s . co m*/ }