Overview of Floating-Point Math
Description
The IEEE 32-bit floating-point numbers belong to the data type called REAL. You can use the floating-point math instructions to perform the following math instructions using two 32-bit IEEE floating-point numbers:
· ADD_R : Add Real
· SUB_R : Subtract Real
· MUL_R : Multiply Real
· DIV_R : Divide Real
You can carry out the following operations with one 32-bit IEEE floating-point number:
· Form the absolute value (ABS) of a floating-point number
· Form the square (SQR) or square root (SQRT) of a floating-point number
· Form the natural logarithm (LN) of a floating-point number
· Form the exponential value of a floating-point number (EXP) to base e (= 2.71828...)
· Form the following trigonometric functions of an angle, represented as a 32-bit floating-point number:
- sine (SIN) and arc sine (ASIN)
- cosine (COS) and arc cosine (ACOS)
- tangent (TAN) and arc tangent (ATAN)
See also Evaluating the Bits of the Status Word with Floating-Point Instructions.
0 comments:
Post a Comment