floor: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]2(\|.*)\]\]" to "{{GameCategory|arma2|Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma1 |Game name= | | arma1 |Game name= | ||
Line 7: | Line 6: | ||
|gr1= Math |GROUP1= | |gr1= Math |GROUP1= | ||
| Returns the next lowest integer in relation to x. |DESCRIPTION= | | Returns the next lowest integer in relation to x. |DESCRIPTION= | ||
| [[Number]] <nowiki>=</nowiki> '''floor''' x |SYNTAX= | | [[Number]] <nowiki>=</nowiki> '''floor''' x |SYNTAX= | ||
Line 17: | Line 14: | ||
| [[Number]] |RETURNVALUE= | | [[Number]] |RETURNVALUE= | ||
|x1= <pre>floor 5.25</pre> | |x1= <pre>floor 5.25</pre> | ||
Line 23: | Line 19: | ||
|x2= <pre>floor -5.25</pre> | |x2= <pre>floor -5.25</pre> | ||
Result is -6 |EXAMPLE2= | Result is -6 |EXAMPLE2= | ||
| [[ceil]], [[round]], [[linearConversion]], [[Math Commands]]|SEEALSO= | | [[ceil]], [[round]], [[linearConversion]], [[Math Commands]]|SEEALSO= |
Revision as of 01:13, 17 January 2021
Description
- Description:
- Returns the next lowest integer in relation to x.
- Groups:
- Math
Syntax
Examples
- Example 1:
floor 5.25
Result is 5- Example 2:
floor -5.25
Result is -6
Additional Information
- See also:
- ceilroundlinearConversionMath Commands
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note