Skip to content

format

typescript
Mathf.FloorToInt(value)

class: Mathf

description

Returns the largest integer less than or equal to the specified value.

parameter

param_nametypedescription
valuenumberThe specified value.

return

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