Returns the ceiling of a number.
An error occurs if number is not a valid number.
ceiling(number)
Parameter | Type | Description |
---|---|---|
number | Decimal number | Any decimal number |
A string containing the ceiling of the number, or an empty string if an error occurs.
In this example, the result of ceiling is "-19".
<field sid="ceilingTest">
<label>Test ceiling()</label>
<format>
<datatype>string</datatype>
<constraints>
<mandatory>on</mandatory>
</constraints>
</format>
<value compute="ceiling('-19.6')"></value>
</field>