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