[Number] floor | Manual

[Number] floor

Gives the largest integer less than the recipient.

 x := 4.5
 y := x floor. #y will be 4

 The example above applies the floor function to the recipient (4.5)
 returning a new number object (4).

back to homepage
back to manual menu

This API reference guide has been generated automatically from source code comments using the shtml.ctr script.