format
typescript
Mathf.Floor(val)class: Mathf
description
Returns the largest integer less than or equal to flr.
parameter
| param_name | type | description |
|---|---|---|
| val | number | The specified value. |
return
| type | description |
|---|---|
number | The largest integer less than or equal to flr. |
code example
typescript
// Get the largest integer less than or equal to val
let floor = Mathf.Floor(3.7) // floor = 3