Creator Help

floor

This topic describes the syntax and usage of the floor function in Zoho Creator .

Description

The floor function returns the given decimal number, rounded down as a positive integer value.

Syntax

floor(<num>);   // This format is supported only in free-flow scripting mode of script builder.

The floor function syntax has the following arguments:

num - Required.  The decimal number you want to be rounded down.

Return Value

Returns a integer representing the floor of the number.

Example

num=5.2
floor(num)   // returns 5

Top