Format

floor(A)

Returns

the floor of A

Args

A: A number, pixloc, or vector.

Returns the floor of A (the largest integer less than or equal to A).

usr << floor(1.45) // outputs 1
 
usr << floor(-1.45) // outputs -2

See also