double 小數點位數範例*/ import java.text. ... setMinimumFractionDigits(2); // 若小數點不足二位,則補足二位 System.out.println(nf.format(3.1415926)); ...
確定! 回上一頁