floor

floor

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

Description

The floorfunction returns the given decimal number, rounded down to the nearest 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 an integer representing the floor of the number.

Example

num=5.2
floor(num) // returns 5

Share this post : FacebookTwitter

Still can't find what you're looking for?

Write to us: support@zohocreator.com