NumberUtils: createBigDecimal(String arg0) : NumberUtils « org.apache.commons.math « Java by API






NumberUtils: createBigDecimal(String arg0)

/*

 */
import java.math.BigDecimal;

import org.apache.commons.lang.math.NumberUtils;

public class MathUtilsTrial {
  public static void main(String[] args) {
    // Create a BigDecimal from a String
    BigDecimal bDecimal = NumberUtils.createBigDecimal("123456789");

  }
}

           
       








Apache-Common-Lang.zip( 248 k)

Related examples in the same category

1.NumberUtils: compare(double arg0, double arg1)
2.NumberUtils: isDigits(String arg0)
3.NumberUtils: isNumber(String arg0)
4.NumberUtils.max(double[] df)