Code example for DecimalFormat

Methods: applyPattern, format

0
package com.apponair.NGpAndroid.Miscs; 
 
import java.text.DecimalFormat; 
 
public class NumberFormatHelper{ 
	public static String formartDb(double num){
		DecimalFormat dc=new DecimalFormat();
		dc.applyPattern("###,###.00");
		return dc.format(num);
	} 
}