Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Android number format thousands separator

int no = 124750;
String str = String.format(Locale.US,"%,d", no).replace(",",".");
// the above line gives str=124.750
String str = String.format(Locale.US,"%,d", no);
// the above line gives str=124,750;
String str = String.format("%,d", no);
//str = 124 750
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Android #number #format #thousands #separator
ADD COMMENT
Topic
Name
1+2 =