acos

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.

Syntax

   acos(number)
Table 1. acos parameters
Parameter Type Description
number Decimal number Any decimal number

Returns

A string containing the arc cosine, or empty string if an error occurs.

Example

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>