Difference between revisions of "NXSL:floor"

From NetXMS Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ Round down value. == Syntax == floor(''x''); == Parameters == :{| |- | ''x'' || Floating point value. |} == Return Value == The largest integral value not g...")
 
m (Text replacement - "^" to "{{deprecated}}")
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOTOC__
{{deprecated}}__NOTOC__
Round down value.
Round down value.
'''Since:''' 1.2.5




Line 10: Line 12:
== Parameters ==
== Parameters ==


:{|
:{| class="wikitable"
|-
|-
| ''x'' || Floating point value.
| ''x'' || Floating point value.

Latest revision as of 16:13, 13 September 2022

This Wiki is deprecated and we are are currrently migrating remaining pages into product documentation (Admin Guide, NXSL Guide)

Round down value.

Since: 1.2.5


Syntax

floor(x);


Parameters

x Floating point value.


Return Value

The largest integral value not greater than x.


Examples

floor(2.3)	->	2
floor(3.8)	->	3
floor(-2.3)	->	-3
floor(-3.8)	->	-4