For what function I can use in android to display the number into different formats.
For eg: If I enter 1000 then it should display like this 1,000. If I enter 1000
You can use Numberformat
public static double getNumberByString(String s) throws ParseException { return NumberFormat.getInstance(Locale.getDefault()).parse(s).doubleValue(); }