-2
在java中,我有java.text.DecimalFormat中相當於目標C
String snumber = null;
String mask = "000000000000";
DecimalFormat df = new DecimalFormat(mask);
snumber = df.format(number); //'number' is of type 'long' passed to a function
//which has this code in it
我不知道在Java中DecimalFormat
操作,並因此發現很難寫一個等效的OBJ C代碼。
我該如何做到這一點?任何幫助,將不勝感激。