Show decimal of a double only when needed · public static void main(String[] args) { · double d1 = 1.234567; · double d2 = 2; · new DecimalFormat("##.###"); ...
確定! 回上一頁