Back to Math
floor
Round down to nearest integer.
Syntax
floor(x) → Largest integer <= x
Backends
TypeScript
Description
Round down to nearest integer.
Parameters
| Name | Description |
|---|---|
| x | Input value |
Returns
Largest integer <= x