Chapter 3 Creating and Editing Screens Example Perform the function of COS30 o and store the result in $0 (this is a floating point operation of signed 32-bit data). Perform the cosine function of $2 and store the result in $4 (this is a floating point operation of signed 32-bit data). TAN (Tangent Function) Equation Var1 = TAN (Var2) Explanation Perform the tangent 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. 3-316 Revision May, 2010