Skip to main content

Floor

How to use the Floor operator​

The Floor operator allows you to modify a numerical value and round it down 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 Floor query​

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

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