Skip to main content

Ceiling

How to use the Ceiling operator​

The Ceiling operator allows you to modify a numerical value and round it up to the nearest integer and use it in comparisons.

Allowed Children​

Arithmetic nodes, Primitive and Reference nodes of Number type

Return Type​

Number

Example Simple Ceiling query​

Find items where the specified attribute ceiling values are equal to 10.

{
"type": "Query",
"properties": {
"dodiCode": "designs_exampleJobs",
"attributes": ["all"]
},
"children": [
{
"type": "Equals",
"children": [
{
"type": "Ceiling",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_jobsConeCount"
}
}
]
},
{
"type": "Number",
"value": ["10"]
}
]
}
]
}