Java BigDecimal fromLongToBigDecimal(long longValue)

Here you can find the source of fromLongToBigDecimal(long longValue)

Description

from Long To Big Decimal

License

Open Source License

Declaration

public static BigDecimal fromLongToBigDecimal(long longValue) 

Method Source Code


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

import java.math.BigDecimal;

public class Main {
    public static BigDecimal fromLongToBigDecimal(long longValue) {
        double doubleValue = ((double) longValue / 100.0);
        return new BigDecimal(doubleValue);
    }/*from  w w  w.j  a  va 2 s.  c o m*/
}

Related

  1. exponentialFormatBigDecimal(BigDecimal bd)
  2. expTaylor(BigDecimal x, int scale)
  3. extractBigDecimal(String value)
  4. firstNonZero(final BigDecimal... values)
  5. floatValue(BigDecimal val)
  6. getArcCosineFor(BigDecimal radians)
  7. getAsDouble(BigDecimal value)
  8. getBalance(BigDecimal balance)
  9. getBtcToBuy(BigDecimal ask, BigDecimal bid, BigDecimal fee, BigDecimal scalpAmount)