Java BigDecimal from convertNumberToBigDecimal(Number aNumber)

Here you can find the source of convertNumberToBigDecimal(Number aNumber)

Description

convert Number To Big Decimal

License

Open Source License

Declaration

public static BigDecimal convertNumberToBigDecimal(Number aNumber) 

Method Source Code

//package com.java2s;

import java.math.BigDecimal;

public class Main {
    public static BigDecimal convertNumberToBigDecimal(Number aNumber) {
        return new BigDecimal(aNumber.toString());
    }//from   w w w  .j  a v a 2 s .com
}

Related

  1. bytesToBigDecimal(byte[] buffer)
  2. byteToBigDecimal(byte[] raw)
  3. byteToBigDecimal(byte[] raw)
  4. castBigDecimal(Object o)
  5. castToBigDecimal(Object value)
  6. doubleArrayToBigDecimalList( double[] array)
  7. doubleToBigDecimal(double amountAsDouble)
  8. doubleToBigDecimal(double dd)
  9. longToBigDecimal(long amountAsSatoshis)