Numbers & math
Scalar
floor()
Rounds the number down
Arguments & returns
3 overloadsfloor(x)
Scalar
Example
Haybarn WASM 1.5.5-rc3 · In your browser
Engine example · Run to view results.
In other engines
Snowflake
UNIFORM(1, 10, RANDOM())
CAST(FLOOR(1 + RANDOM() * (10 - 1 + 1)) AS BIGINT)