Java BigDecimal getAsDouble(BigDecimal value)

Here you can find the source of getAsDouble(BigDecimal value)

Description

Gets the as double.

License

Open Source License

Parameter

Parameter Description
value the value

Return

the as double

Declaration

public static Double getAsDouble(BigDecimal value) 

Method Source Code


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

import java.math.BigDecimal;

public class Main {
    /**// w w  w  . j a  v  a 2 s  .co m
     * Gets the as double.
     *
     * @param value
     *            the value
     * 
     * @return the as double
     */
    public static Double getAsDouble(BigDecimal value) {
        return value == null ? null : value.doubleValue();
    }
}

Related

  1. extractBigDecimal(String value)
  2. firstNonZero(final BigDecimal... values)
  3. floatValue(BigDecimal val)
  4. fromLongToBigDecimal(long longValue)
  5. getArcCosineFor(BigDecimal radians)
  6. getBalance(BigDecimal balance)
  7. getBtcToBuy(BigDecimal ask, BigDecimal bid, BigDecimal fee, BigDecimal scalpAmount)
  8. getByteArrayFromBigDecimalArray(Object value)
  9. getConversionUsdBased(final String destinycode, final BigDecimal amount, final BigDecimal usdBasedBaseRate, BigDecimal usdBasedDestinyRate)