package elte.java2_utikalauz5.lang; /** Kerekítések. @link.forrásfájl {@docRoot}/../data/lang/src Kerekit.java @link.letöltés {@docRoot}/../data/lang Kerekit.jar @since Java Útikalauz programozóknak */ public class Kerekit { public static void main(String args[]) { System.out.println("ceil(3.14) == " + Math.ceil(3.14)); System.out.println("floor(3.14) == " + Math.floor(3.14)); System.out.println("rint(3.14) == " + Math.rint(3.14)); System.out.println("rint(3.5) == "+ Math.rint(3.5)); System.out.println("rint(4.5) == "+ Math.rint(4.5)); double d = Math.pow(2,100); System.out.println("pow(2,100) == "+d); System.out.println("round(pow(2,100)) == " + Math.round(d)); } }