Returns the largest integer less than or equal to the specified floating point number
Class: Mathematical
Parameters: @d – A floating point number
Syntax: @returnValue=@floor(@d)
Returns: The largest integer value less than or equal to @d
Remarks: This kind of rounding is sometimes called rounding towards negative infinity
Example:
//Example for the mathematical @floor method
@d=23.456 //Set power value
@result=@floor(@d) //Calculate result (= 23)
message(“Floor of “ + @d + “ is “ + @result) //Display results message