Java tutorial
//package com.java2s; import android.widget.TextView; import java.text.DecimalFormat; public class Main { public static final DecimalFormat dfOne = new DecimalFormat("###,###,###,###,###,###,###,###,###"); public static void formatNoDecimal(TextView txt, double number) { txt.setText(dfOne.format(number)); } }