JAVA如何設定輸出運算結果小數點後幾位 @ Afutseng's Blog :: 痞客邦 PIXNET ::
經安全檢測,此網站為安全網站,請放心前往原始網址!
JAVA如何設定輸出運算結果小數點後幾位 @ Afutseng's Blog :: 痞客邦 PIXNET ::
JAVA如何設定輸出 運算結果小數點後幾位 import java.text.NumberFormat; public class test1 { public static void main(String[] args) { int a = 100, b = 3; float fcalc = (float) a / b ...