Code example for BigDecimal

Methods: doubleValue

0
        } 
        else { 
            currency = new DecimalFormat("#,##0 ");  
        } 
        currency.setDecimalFormatSymbols(dfs);
        return currency.format(balance.doubleValue())+curr;
    } 
    public static String formatBalance(BigDecimal balance, String curr) {
        return formatBalance(balance, curr, false);
    } 
    public static String formatBalance(Double balance, String curr) {
        return formatBalance(new BigDecimal(balance), curr);
    } 
 
    public static void slowDebug(String TAG, String text) {
        slowDebug(TAG, text, 100);
    } 
    public static void slowDebug(String TAG, String text, int sleep) {
        for (String s : text.split("\n")) {
            Log.d(TAG, s);
            try {