Rounds a number to the specified decimal precision using the half-away-from-zero rounding method.
Same as input typeDiperbarui: 13 Jun 2026ROUND(expression [, precision])Numeric value to round
Number of decimal digits (default: 0)
Default: 0
1 SELECT 2 value, 3 ROUND(value) as rounded, 4 ROUND(value, 1) as one_decimal 5 FROM UNNEST([1.234, 2.567, 3.999, -1.5]) as value;
Rounding to integer and one decimal place.
| value | rounded | one_decimal |
|---|---|---|
| 1.234 | 1 | 1.2 |
| 2.567 | 3 | 2.6 |
| 3.999 | 4 | 4.0 |
| -1.5 | -2 | -1.5 |
1 SELECT 2 amount, 3 ROUND(amount, -2) as rounded_to_hundred 4 FROM UNNEST([1234, 5678, 9950]) as amount;
Rounds to the nearest hundred.
| amount | rounded_to_hundred |
|---|---|
| 1234 | 1200 |
| 5678 | 5700 |
| 9950 | 10000 |
Sudah paham ROUND? Latih langsung di browser
Latihan interaktif, langsung di browser.