You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<summary><glossary tag="return">Returns</glossary> the smallest integer greater than or equal to number.</summary>
<examples>
<example>ceil(33.567) -- result is 34</example>
<example>ceil(-6.3) -- result is -6</example>
</examples>
<history>
<introduced version="6.7">Added.</introduced>
<deprecated version=""></deprecated>
<removed version=""></removed>
<experimental version=""></experimental>
<nonexperimental version=""></nonexperimental>
</history>
<objects>
</objects>
<platforms>
<mac/>
<windows/>
<linux/>
<ios/>
<android/>
</platforms>
<classes>
<desktop/>
<server/>
<web/>
<mobile/>
</classes>
<security>
</security>
<classification>
<category>Math, Logic, & Dates</category>
</classification>
<references>
<function tag="abs">abs Function</function>
<function tag="trunc">trunc Function</function>
<function tag="floor">floor Function</function>
</references>
<description>Use the <b>ceil</b> <control_st tag="function">function</control_st> to return the greatest integer less than or equal to a number.<p></p><p><b>Parameters:</b></p><p>The <i>number</i> is any number, or <glossary tag="expression">expression</glossary> that <glossary tag="evaluate">evaluates</glossary> to a number.</p><p></p><p><b>Value:</b></p><p>The <b>ceil</b> <control_st tag="function">function</control_st> <glossary tag="return">returns</glossary> an <keyword tag="integer">integer</keyword>.</p><p></p><p><b>Comments:</b></p><p>The <b>ceil</b> function does not always <constant tag="return">return</constant> the <keyword tag="integer">integer</keyword> closest to the <i>number</i>.. For example, ceil(5.1) <glossary tag="return">returns</glossary> 6, but ceil(4.99) <glossary tag="return">returns</glossary> 5.</p></description>