> For the complete documentation index, see [llms.txt](https://200ok.gitbook.io/200ok-documents/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://200ok.gitbook.io/200ok-documents/user-manual/built-in-functions/math/ceil.md).

# ceil

ceil() function is the Standard function available in 200OK.

**Description** : The ceil function takes a numerical input and returns the smallest integer greater than or equal to the input, regardless of any decimal points in the number.

**Syntax** :  fx\_ceil()

**Example** : fx\_ceil(3.27) returns 4 as the response.

Here we go with simple scenario using the above function.

**Scenario** : A baker is packaging cookies into boxes for sale. They utilize a function to determine the minimum number of boxes needed by rounding up the total number of cookies to the nearest whole number, ensuring accurate packaging and efficient inventory management.

**Request Side** : &#x20;

<figure><img src="https://lh7-us.googleusercontent.com/yBi5segV_TLSFUZg0KGSdFVpxYR3Wg1cDIcG2tybR7iW_xFBcZ9L0fWx2Ejy7OG3jjqCpGT_pRNDe-BRZZ1VztIpwevZfE1gkSI4389mjCM7uv4_R7FQqkefX7q04KW5RxBE2vM_mJttPgYe-6sPI7E" alt=""><figcaption><p><strong>Passing the value inside the function</strong></p></figcaption></figure>

<figure><img src="https://lh7-us.googleusercontent.com/QZm35CNkCPd0wdMpyOToqEt5DmbQyax9XGT3lSy0KW6XjC7HTtbsGBidL1dnY1rSinRqhTZQCgNyBl3f3vx6hb60LjKYW_zX8fFw1FFzBVTdC-eoT7ecHU7Zf1eGKIp0H81J0gbXXJDPsnI_LnQkDEA" alt=""><figcaption><p><strong>Passing the value inside the function using index patterns</strong></p></figcaption></figure>

<figure><img src="https://lh7-us.googleusercontent.com/RBWsU5b-zsLQ2g5yuhic8h_sylfSngjzXuCQUutqNXjJwiuK7SB4HKs-5jAuwwY7wJra8aWabQ82vijA6irJtzL-DGuHRzMHv64LA693hbC_4XVi_z_TdDSXbBGhrcQY-MlCxL6S1FmS9_KQgsn14Vo" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh7-us.googleusercontent.com/lOZflzCvPycVcIj2q14wDPfhg0MnbBr-MnQRaM9QxbCj1sI8uyuPRSPfmhfonOsFlwVuk4KrpE6-dDgo-oMYwiLhbDFv5YV4olHBoyvyIXCK7FOys8nLH1_bE7vR08SEI_32UH0SVXoDs3CbdwNZNdc" alt=""><figcaption></figcaption></figure>

**Response Side** :&#x20;

<figure><img src="https://lh7-us.googleusercontent.com/dVoR5_wwIypegpxUR8F0HV2Fx6nb7rro_eCLQ_iUz3wQLelnzvxkpK3dZKqR1fT0I2arA9DB7uy5f9C4r-uW6thCFtRmsOcqNVTuqDCp1L0x87oO7C1hcaxk_XSPT-6aMK6bfAGER7HFfh9n8Up0Aqc" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh7-us.googleusercontent.com/ASjTnDBPD1FVv3X1yxsDPCGWl-gfAo7QvftCSJ-PE2DMQ32vgLy27P5iZEX4-rUO1SHy4zHmbU_LBlaq_d1pY4rw_kHqK7YTWAeS9PHkNG4KlvdyXWIfnAqMPJyOa4gypB43rnCWssKa1Pns8F9K938" alt=""><figcaption></figcaption></figure>
