Java BigDecimal intToBigDecimal(int i)

Here you can find the source of intToBigDecimal(int i)

Description

int To Big Decimal

License

Educational Community License

Declaration

static private BigDecimal intToBigDecimal(int i) 

Method Source Code

//package com.java2s;
/**   /*w w w . j a v  a 2 s .c o  m*/
 * NuxeoImageUtils.java
 *
 * {Purpose of This Class}
 *
 * {Other Notes Relating to This Class (Optional)}
 *
 * $LastChangedBy: $
 * $LastChangedRevision: $
 * $LastChangedDate: $
 *
 * This document is a part of the source code and related artifacts
 * for CollectionSpace, an open source collections management system
 * for museums and related institutions:
 *
 * http://www.collectionspace.org
 * http://wiki.collectionspace.org
 *
 * Copyright ? 2009 {Contributing Institution}.
 *
 * Licensed under the Educational Community License (ECL), Version 2.0.
 * You may not use this file except in compliance with this License.
 *
 * You may obtain a copy of the ECL 2.0 License at
 * https://source.collectionspace.org/collection-space/LICENSE.txt
 */

import java.math.BigDecimal;
import java.math.BigInteger;

public class Main {
    static private BigDecimal intToBigDecimal(int i) {
        BigInteger bigint = BigInteger.valueOf(i);
        BigDecimal bigdec = new BigDecimal(bigint);
        return bigdec;
    }
}

Related

  1. hash(BigDecimal bd)
  2. hasSignedChanged(final BigDecimal v1, final BigDecimal v2)
  3. htmlFooter(String providerNo, int count, BigDecimal total)
  4. humanReadableByteCount(BigDecimal bytes, Boolean si)
  5. incRatio(BigDecimal o1, BigDecimal o2)
  6. intValue(BigDecimal a)
  7. inverse(final BigDecimal amount)
  8. invert(BigDecimal d)
  9. joinBigDecimals(List list)