Tinking in java chapter3
共 1 篇文章
Math.round ceil floor
package com.liuc.test.think.chapter3; public class MathTest { public static void main(String[] args) { double a = 1.6; System.out.println(Math.round(a)); System.out.println(Math.ceil(a)); System.out.println(Math.floor(a)); double b = -1.6; System.out.println(Math.round(b)); System.out.println(Math.…
2012-04-09 23:02 · Tinking in java chapter3