// convert a long to BigDecimal, with some implied decimal places. BigDecimal d = BigDecimal.valueOf( theLong, decimalPlaces );