Here you can find the source of intToBigDecimal(int i)
static private BigDecimal intToBigDecimal(int i)
//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; } }