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.
rad2deg(angle)
Parameter | Type | Description |
---|---|---|
angle | Decimal number | Any decimal number representing the angle in radians. |
A string containing the number of degrees, or an empty string if an error occurs.
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>