Complete the code to round the number 3.14159 to the nearest integer.
SELECT [1](3.14159);
The ROUND function rounds a number to the nearest integer or specified decimal places.
Complete the code to get the smallest integer greater than or equal to 4.3.
SELECT [1](4.3);
The CEIL function returns the smallest integer greater than or equal to the given number.
Fix the error in the code to get the largest integer less than or equal to 7.8.
SELECT [1](7.8);
The FLOOR function returns the largest integer less than or equal to the given number.
Fill both blanks to calculate the absolute value of -15 and then round it.
SELECT [1]([2](-15));
First, ABS returns the absolute value of -15, which is 15. Then, ROUND rounds the number (though 15 is already an integer).
Fill all three blanks to round the absolute value of -3.7 up to the nearest integer.
SELECT [1]([2]([3]));
The innermost value is -3.7. The ABS function makes it positive (3.7). Then CEIL rounds it up to 4.