481
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Floating-point Math Instructions
3
RAD
Function
RAD(458) converts the 32-bit floating-point number in S+1 and S from degrees to radians and places
the result in R and R+1. (The floating point source data must be in IEEE754 format.)
Degrees are converted to radians by means of the following formula:
Degrees × π/180 = radians
Note • If the absolute value of the result is greater than the maximum value that can be expressed as floating-
point data, the Overflow Flag will turn ON and the result will be output as ±∞.
• If the absolute value of the result is less than the minimum value that can be expressed as floating-point
data, the Underflow Flag will turn ON and the result will be output as 0.
R+1 R
S
S+1
Source (degrees, 32-bit floating-point data)
Result (radians, 32-bit floating-point data)