Returns the arc cosine of a number stored in number.
An error occurs ifnumber is not a valid number or has absolute value greater than 1.
acos(number)
Parameter | Type | Description |
---|---|---|
number | Decimal number | Any decimal number |
A string containing the arc cosine, or empty string if an error occurs.
In this example, the result of acos is "1.047198".
<field sid="arccosineField">
<label>Test acos()</label>
<format>
<datatype>string</datatype>
<constraints>
<mandatory>on</mandatory>
</constraints>
</format>
<value compute="acos('0.5')"></value>
</field>