Java BigDecimal Format isLess(float formateValue1, float formateValue2)

Here you can find the source of isLess(float formateValue1, float formateValue2)

Description

is Less

License

Apache License

Declaration

public static boolean isLess(float formateValue1, float formateValue2) 

Method Source Code


//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*/
}

Related

  1. formatTime(BigDecimal seconds)
  2. formatTwoDecimals(float num)
  3. formatUnwithE(Object arg)
  4. formatYuan2Fen(double fee)
  5. getFormatSizeByKB(long size)
  6. timeToEMTFormat(long elapsedTimeMillis)
  7. toNormalFenFormat(String fen)
  8. unformattedFromDouble(double n, int decimals)