rad2deg

Returns the number of degrees in an angle expressed in radians stored in angle.

An error occurs if angle does not contain a valid angle.

Syntax

   rad2deg(angle)
Table 1. rad2deg parameters
Parameter Type Description
angle Decimal number Any decimal number representing the angle in radians.

Returns

A string containing the number of degrees, or an empty string if an error occurs.

Example

In this example, the result of rad2deg is "114.591559".

   <field sid="rad2degField">
      <label>Test rad2deg()</label>
      <format>
         <datatype>string</datatype>
         <constraints>
            <mandatory>on</mandatory>
         </constraints>
      </format>
      <value compute="rad2deg('2')"></value>
   </field>