2018年11月10日 星期六

[JAVA]千分位符號


//測試千分符號int tempa = 100000;int tempb = 10000;NumberFormat numberFormat1 = NumberFormat.getNumberInstance();Log.d("---------",numberFormat1.format(tempa));Log.d("---------",numberFormat1.format(tempb));

輸出畫面

沒有留言: