Java BigDecimal getRSBigDecimal(Object object)

Here you can find the source of getRSBigDecimal(Object object)

Description

getRSBigDecimal, get fields value from a object

License

Apache License

Parameter

Parameter Description
Object object

Return

double

Declaration

static public double getRSBigDecimal(Object object) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.math.*;

public class Main {
    /**//from   w  w  w .j ava 2  s .c om
     * getRSBigDecimal, get fields value from a object
     * @param Object object
     * @return double
     */
    static public double getRSBigDecimal(Object object) {
        if (object == null)
            return (double) 0;
        return ((BigDecimal) object).doubleValue();
    }
}

Related

  1. getProzentWert(BigDecimal zahl, BigDecimal prozentsatz, int nachkommastellen)
  2. getRandomBigDecimal(BigDecimal a, BigDecimal b)
  3. getRandomBigDecimal(int maxValue, int scale)
  4. getRandomPriceChangeFactor(BigDecimal currentPrice)
  5. getRecordSize(List> columnBaseData)
  6. getScale(BigDecimal bd1, BigDecimal bd2)
  7. getScaledDouble(BigDecimal input)
  8. getSid(BigDecimal total, AtomicLong sid)
  9. getSignedBalance(BigDecimal balance)