Rounds a number down to the nearest integer less than or equal to the input.
Same as input typeDiperbarui: 13 Jun 2026FLOOR(expression)Numeric value to round down
1 SELECT 2 value, 3 FLOOR(value) as floored 4 FROM UNNEST([1.1, 2.5, 3.9, -1.5, -2.9]) as value;
Rounds to the nearest integer downward.
| value | floored |
|---|---|
| 1.1 | 1 |
| 2.5 | 2 |
| 3.9 | 3 |
| -1.5 | -2 |
| ... 1 baris lainnya | |
1 SELECT 2 age, 3 FLOOR(age / 10) * 10 as age_group 4 FROM `project.dataset.users`;
Groups ages into decades (20s, 30s, etc.).
Sudah paham FLOOR? Latih langsung di browser
Latihan interaktif, langsung di browser.