What result will MySQL return for the following mathematical function?SELECT…
2026
What result will MySQL return for the following mathematical function?
SELECT ROUND(15.786, 2);
Answer: C. 15.79 — The MySQL ROUND() function rounds a number to the specified number of decimal places. For ROUND(15.786, 2), it rounds to two decimal places. The third decimal…
- A.
15.78
- B.
15.8
- C.
15.79
- D.
16.0
Attempted by 960 students.
Show answer & explanation
Correct answer: C
The MySQL ROUND() function rounds a number to the specified number of decimal places. For ROUND(15.786, 2), it rounds to two decimal places. The third decimal digit is 6, which is greater than or equal to 5, so the second digit (8) rounds up to 9. The result is 15.79.
Loading lesson…