Java BigDecimal from String string2BigDecimal(String aValue)

Here you can find the source of string2BigDecimal(String aValue)

Description

string Big Decimal

License

Apache License

Declaration

private static BigDecimal string2BigDecimal(String aValue) 

Method Source Code


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

import java.math.BigDecimal;

public class Main {
    private static BigDecimal string2BigDecimal(String aValue) {
        if (aValue != null && aValue.trim().length() > 0) {
            return new BigDecimal(aValue);
        } else {/*from  w w w.ja  v  a2s  .  com*/
            return null;
        }
    }
}

Related

  1. string2BigDecimal(String s)
  2. string2BigDecimal(String st)
  3. String2BigDecimal(String str)
  4. stringToBigDecimal(String numberString)