Skip to main contentSkip to solution

What is the output of the following statement?

SELECT ROUND(2928.678,2);

Solution

✅ Correct Option: 2

ROUND(n, d) rounds the number nn to dd decimal places. Here d=2d = 2, so the digits after the second decimal place are examined: the third decimal digit is 8 (2928.678), which is 5 or more, so the second decimal digit 7 is rounded up to 8.

ROUND(2928.678,2)=2928.68\text{ROUND}(2928.678, 2) = \boxed{2928.68}


Option 1: this is truncation (like TRUNCATE(2928.678,2)), not rounding. ROUND rounds up when the next digit is 5 or more.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question