Rounds the float value down to the nearest integer value.
float
Syntax
int float.Floor()
Returns
The largest int less than or equal to the float value.
int
Sample
floatSample.rfsvar a = 42.56; ... var b = -65.2; ... var o = a.Floor(); var p = b.Floor(); trace a, " floored is ", o, " and ", b, " floored is ", p;
floatSample.rfs
var a = 42.56; ... var b = -65.2; ... var o = a.Floor(); var p = b.Floor(); trace a, " floored is ", o, " and ", b, " floored is ", p;
a.Floor()
b.Floor()
42.56, " floored is ", 42, " and ", -65.2, " floored is ", -66
Figure 345. The trace message output of the above script
Related links
Search Highlighter (On/Off)