Java BigDecimal Parse isBigDecimal(String str)

Here you can find the source of isBigDecimal(String str)

Description

is Big Decimal

License

Apache License

Declaration

public static boolean isBigDecimal(String str) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.math.BigDecimal;

public class Main {
    public static boolean isBigDecimal(String str) {
        try {//from  w  ww  .  j  a v  a  2  s  . co  m
            new BigDecimal(str);
            return true;
        } catch (Exception e) {
            return false;
        }
    }
}

Related

  1. isBigDecimal(final N number)
  2. isBigDecimal(final Object value)
  3. isBigDecimal(Number n)
  4. isBigDecimal(Object obj)
  5. isBigDecimal(Object v)
  6. isBigDecimal(String value)
  7. isBigDecimalAssignable(String javaDataType)
  8. isBigDecimalType(Class type)
  9. isInteger(BigDecimal decimal)