589
Floating-point Math Instructions Section 3-15
3-15 Floating-point Math Instructions
The Floating-point Math Instructions convert data and perform floating-point
arithmetic operations. CS/CJ-series CPU Units support the following instruc-
tions.
In addition to the instructions listed above, the CS1-H/CJ1-H CPU Units sup-
port the following floating-point comparison and conversion instructions. Refer
to
3-16-21 Double-precision Floating-point Input Instructions for details on
double-precision floating-point instructions.
Data Format Floating-point data expresses real numbers using a sign, exponent, and man-
tissa. When data is expressed in floating-point format, the following formula
applies.
Instruction Mnemonic Function code Page
FLOATING TO 16-BIT FIX 450 594
FLOATING TO 32-BIT FIXL 451 596
16-BIT TO FLOATING FLT 452 597
32-BIT TO FLOATING FLTL 453 599
FLOATING-POINT ADD +F 454 601
FLOATING-POINT SUB-
TRACT
–F 455 603
FLOATING-POINT MULTI-
PLY
*F456605
FLOATING-POINT DIVIDE /F 457 607
DEGREES TO RADIANS RAD 458 609
RADIANS TO DEGREES DEG 459 610
SINE SIN 460 612
HIGH-SPEED SINE SINQ 475 614
COSINE COS 461 615
HIGH-SPEED COSINE COSQ 476 617
TANGENT TAN 462 619
HIGH-SPEED TANGENT TANQ 477 621
ARC SINE ASIN 463 623
ARC COSINE ACOS 464 625
ARC TANGENT ATAN 465 627
SQUARE ROOT SQRT 466 629
EXPONENT EXP 467 631
LOGARITHM LOG 468 633
EXPONENTIAL POWER PWR 840 635
MOVE FLOATING-POINT
(SINGLE)
MOVF 469 649
Instruction Mnemonic Function code Page
Single-precision Floating-
point Symbol Comparison
Instructions
(*CS1-H/CJ1-H/CJ1M
Only)
LD, AND, OR
+
=F, <>F, <F, <=F, >F,
or >=F
329 to 334 636
FLOATING-POINT TO
ASCII (*CS1-H/CJ1-H/
CJ1M Only)
FSTR 448 640
ASCII TO FLOATING-
POINT (*CS1-H/CJ1-H/
CJ1M Only)
FVAL 449 645