Java BigDecimal from String String2BigDecimal(String str)

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

Description

String Big Decimal

License

Open Source License

Declaration

public static BigDecimal String2BigDecimal(String str) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.math.BigDecimal;

public class Main {
    public static BigDecimal String2BigDecimal(String str) {
        return BigDecimal.valueOf(Double.parseDouble(str));
    }/*from  www .j a  v  a2  s .com*/
}

Related

  1. string2BigDecimal(String aValue)
  2. string2BigDecimal(String s)
  3. string2BigDecimal(String st)
  4. stringToBigDecimal(String numberString)
  5. stringToBigDecimal(String src, int[] endPos)
  6. stringToDec(final CharSequence stringValue, final BigDecimal defaultValue)