Java BigDecimal from toBigDecimal(String str)

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

Description

to Big Decimal

License

Open Source License

Declaration

public static BigDecimal toBigDecimal(String str) 

Method Source Code


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

import java.math.BigDecimal;

public class Main {

    public static BigDecimal toBigDecimal(String str) {
        if (str == null || str.isEmpty()) {
            return null;
        }/* www .  ja v  a  2s. c o  m*/
        return new BigDecimal(str);
    }
}

Related

  1. toBigDecimal(Object value)
  2. toBigDecimal(String _str)
  3. toBigDecimal(String s)
  4. toBigDecimal(String s)
  5. toBigDecimal(String s, int scale)
  6. toBigDecimal(String value)
  7. toBigDecimal(String value)
  8. toBigDecimal(String value)
  9. toBigDecimal(String value)