本篇文章介紹瞭如何在Java 中列印一個小數點後2 位的float 值。 ... Get only 2 decimal points System.out.printf("%.2f", Pi); } }.
確定! 回上一頁