Skip to main content
Version: 7.9

floor

This function is used by Ignition's Expression language.

Description

Returns the largest floating point value that is less than or equal to the argument and is equal to a mathematical integer.

Syntax

floor(number)

  • Parameters

    • float number - The number to get the floor of.
  • Results

    • float - The floor of the number provided.

Examples

Code Snippet
floor(2.72) //returns 2.0