Skip to content

format

typescript
Mathf.Floor(val)

class: Mathf

description

Returns the largest integer less than or equal to flr.

parameter

param_nametypedescription
valnumberThe specified value.

return

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