# CEILING

The CEILING function returns the rounded up value of the specified number or node.

### Syntax

CEIL(value) - > number

### Arguments

<table><thead><tr><th width="159">Arguments</th><th width="148">Datatype</th><th>Description</th></tr></thead><tbody><tr><td>value</td><td>Number/Node reference</td><td>The value or the node name that has the values to be rounded up.</td></tr></tbody></table>

### Example

Consider the below example where we have raw material consumption data. The objective is to find out the number of boxes of raw material that we have consumed.

<table><thead><tr><th width="318.4339963833635">Periods</th><th width="93">Jan</th><th width="92">Feb</th><th width="84">Mar</th></tr></thead><tbody><tr><td><mark style="color:green;">Raw material available per box</mark></td><td>2</td><td>2</td><td>2</td></tr><tr><td><mark style="color:orange;">Raw material used per box</mark> </td><td>1.25</td><td>1.25</td><td>1.25</td></tr><tr><td><mark style="color:purple;">Demand</mark></td><td>20</td><td>25</td><td>30</td></tr></tbody></table>

To achieve this, the following formula should be written in the \[No. of raw material boxes used] node.

<mark style="color:blue;">**`CEIL`**</mark>**`((`**<mark style="color:blue;">**`PRODUCT`**</mark>**`(`**<mark style="color:purple;">**`[Demand]`**</mark>**`,`**<mark style="color:orange;">**`[Raw material used per box]`**</mark>**`))/`**<mark style="color:green;">**`[Raw material available per box]`**</mark>**`)`**

### **Result**

| Periods                        | Jan   | Feb   | Mar   |
| ------------------------------ | ----- | ----- | ----- |
| No. of raw material boxes used | 13.00 | 16.00 | 19.00 |

### Remarks

Without using CEIL, the results would be:

| Periods                        | Jan   | Feb    | Mar   |
| ------------------------------ | ----- | ------ | ----- |
| No. of raw material boxes used | 12.50 | 15.625 | 18.75 |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.valq.com/model/formula-functions/math-functions/ceiling.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
