Important This documentation space contains information about PATROL Agents when deployed in a TrueSight Operations Management environment. If you are a BMC Helix Operations Management user, see PATROL Agent for BMC Helix Operations Management 24.3.01.

floor()


Return the largest integer that is not larger than the argument

Syntax

floor(argument)

Parameters

Parameter

Definition

argument

numeric argument whose greatest integer lower bound is to be determined

Description

The floor() function returns the largest integer that is not greater than argument, that is, the greatest integer lower bound for argument.

The floor() function and the ceil() function together bracket argument such that the following are true:

If argument is an integer, ceil( argument ) = argument = floor( argument ).

If argument is not an integer, floor( argument ) < argument < ceil( argument ) and ceil( argument ) = floor( argument ) + 1.

Example

The following floor() function call prints the integer 12:

print(floor(12.3456));

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*