Chapter 3 Creating and Editing Screens
Example
Perform the function of SIN30o and store the result in $0 (this is a floating point
operation of signed 32-bit data).
Perform the sine function of $2 and store the result in $4 (this is a floating point
operation of signed 32-bit data).
COS (Cosine Function)
Equation
Var1 = COS (Var2)
Explanation
Perform the cosine function of the value within Var2, and store the result in Var1.
Remark
The definition of Var2 is an angle, not radius.
This is the operation of signed 32-bit data.
The calculation result can be stored as signed DWORD. When the data exceeds
the length of designated unit, the data out of range will be discarded.
Var1 can be internal memory only. Var2 can be internal memory or constant.
The display format of the variables must be floating point.
The input variable must be a signed decimal value without the decimal point.
Revision May, 2010 3-315