Java and java
Round the decimal number: Math. floor (2) = 2 rounded off decimal places to integer: Math. floor (2.1) = 2 rounded off decimal places to integer: Math. floor (2.5) = 2 rounded off decimal places to integer: Math. floor (2.9) = 2 negative number rounded off decimal number: Math. floor (-2) =-2 negative number rounding off decimal number to get the integer: Math. floor (-2.1) =-3 negative number rounding off decimal number to get the integer: Math. floor (-2.5) =-3 negative number rounding off decimal number to get the integer: Math. floor (-2.9) =-3 See decimal number to get the integer: Math. ceil (2) = 2 See decimal number to get the integer: Math. ceil (2.1) = 3. See decimal number to get the integer: Math. ceil (2.5) = 3. See decimal number to get the integer: Math. ceil (2.9) = 3 negative values: Math. ceil (-2) =-2 negative number. See decimal number to take the integer Math. ceil (-2.1) =-2 negative number. See decimal number to take the integer Math. ceil (-2.5) =-2 negative number. See decimal number to take the integer Math. ceil (-2.9) =-2