Formatting numbers in Java / Indian numbering system [duplicate]
问题 This question already has answers here : How can I format a String number to have commas and round? (10 answers) Number formatting in java to use Lakh format instead of million format (3 answers) Closed 5 years ago . I want to obtain number in following format: 1000 = 1,000 10000 = 10,000 100000 = 1,00,000 I tried this: import java.text.DecimalFormat; public class StringProcessingDemo { public static void main(String[] args) { String pattern = "##,##,###.###"; DecimalFormat myFormatter = new