format
typescript
Mathf.FloorToInt(value)class: Mathf
description
Returns the largest integer less than or equal to the specified value.
parameter
| param_name | type | description |
|---|---|---|
| value | number | The specified value. |
return
| type | description |
|---|---|
number | The largest integer less than or equal to the specified value. |
code example
typescript
// Get the largest integer less than or equal to the specified value
let floorToInt = Mathf.CeilToInt(4.5) // floorToInt = 5