
π μμμ λ΄λ¦Ό
β μ¬μ© μμ
Math.floor( 45.95); // 45
Math.floor( 45.05); // 45
Math.floor( 4 ); // 4
Math.floor(-45.05); // -46
Math.floor(-45.95); // -46
π μμμ μ¬λ¦Ό
β μ¬μ© μμ
Math.ceil(1.6) : 2
Math.ceil(1.2) : 2
Math.ceil(1.0) : 1
Math.ceil(-1.2) : -1
Math.ceil(-1.6) : -1
Math.ceil(-2.0) : -2
π μμμ λ°μ¬λ¦Ό
β μ¬μ© μμ
Math.round(1.6) : 2
Math.round(1.5) : 2
Math.round(1.2) : 1
Math.round(1.0) : 1
Math.round(-1.2) : -1
Math.round(-1.5) : -1
Math.round(-1.6) : -2
Math.round(-2.0) : -2
π μ°Έκ³ μ¬μ΄νΈ