표준입력 (stdin)
실행옵션 (runtime option)
코드:
실행 »
표준입력/실행옵션
public class prog { public static void main(String[] args) { System.out.println(Math.ceil(10.0)); // 10.0 System.out.println(Math.ceil(10.1)); // 11.0 System.out.println(Math.ceil(10.000001)); // 11.0 System.out.println(Math.floor(10.0)); // 10.0 System.out.println(Math.floor(10.9)); // 10.0 System.out.println(Math.round(10.0)); // 10 System.out.println(Math.round(10.4)); // 10 System.out.println(Math.round(10.5)); // 11 } }