ceil: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]2(\|.*)]]" to "{{GameCategory|arma2|Scripting Commands}}")
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=
____________________________________________________________________________________________


| The ceil value of x. |DESCRIPTION=
| The ceil value of x. |DESCRIPTION=
____________________________________________________________________________________________


| [[Number]] <nowiki>=</nowiki> '''ceil''' x |SYNTAX=
| [[Number]] <nowiki>=</nowiki> '''ceil''' x |SYNTAX=
Line 17: Line 14:


| [[Number]] |RETURNVALUE=
| [[Number]] |RETURNVALUE=
____________________________________________________________________________________________
   
   
|x1= <pre>ceil 5.25</pre>
|x1= <pre>ceil 5.25</pre>
Line 23: Line 19:
|x2= <pre>ceil -5.25</pre>
|x2= <pre>ceil -5.25</pre>
Result is -5 |EXAMPLE2=
Result is -5 |EXAMPLE2=
____________________________________________________________________________________________


| [[floor]], [[round]], [[linearConversion]], [[Math Commands]]|SEEALSO=
| [[floor]], [[round]], [[linearConversion]], [[Math Commands]]|SEEALSO=

Revision as of 00:25, 17 January 2021

Hover & click on the images for description

Description

Description:
The ceil value of x.
Groups:
Math

Syntax

Syntax:
Number = ceil x
Parameters:
x: Number
Return Value:
Number

Examples

Example 1:
ceil 5.25
Result is 6
Example 2:
ceil -5.25
Result is -5

Additional Information

See also:
floorroundlinearConversionMath 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

Notes

Bottom Section