Here you can find the source of longToBigDecimal(long amountAsSatoshis)
public static BigDecimal longToBigDecimal(long amountAsSatoshis)
//package com.java2s; //License from project: Open Source License import java.math.BigDecimal; public class Main { private static final BigDecimal SATOSHIS = new BigDecimal(100000000); public static BigDecimal longToBigDecimal(long amountAsSatoshis) { return new BigDecimal(amountAsSatoshis).divide(SATOSHIS); }/* w ww . j a v a2 s . c o m*/ }