Skip to content

format

typescript
Mathf.CeilToInt(value)

class: Mathf

description

Returns the smallest integer greater than or equal to the specified value.

parameter

param_nametypedescription
valuenumberThe specified value.

return

typedescription
numberThe 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