472
Floating-point Math Instructions Section 3-14
Example When CIO 0.00 is ON in the following example, BCNT(067) counts the total
number of ON bits in the 10 words from CIO 200 and CIO 209 and writes the
result to D1000.
3-14 Floating-point Math Instructions
The Floating-point Math Instructions convert data and perform floating-point
arithmetic operations.
Refer to 3-15-21 Double-precision Floating-point Input Instructions for details
on double-precision floating-point instructions.
R:D1000
0.00
&10
200
D1000
N
S
R
BCNT
200
201
209
10 words
to to
Counts the number
of ON bits (35).
23 hexadecimal
(35 decimal)
Instruction Mnemonic Function code Page
FLOATING TO 16-BIT FIX 450 478
FLOATING TO 32-BIT FIXL 451 480
16-BIT TO FLOATING FLT 452 481
32-BIT TO FLOATING FLTL 453 483
FLOATING-POINT ADD +F 454 484
FLOATING-POINT SUB-
TRACT
–F 455 486
FLOATING-POINT MULTI-
PLY
*F456488
FLOATING-POINT DIVIDE /F 457 490
DEGREES TO RADIANS RAD 458 492
RADIANS-TO-DEGREES DEG 459 493
SINE SIN 460 495
COSINE COS 461 496
TANGENT TAN 462 498
ARC SINE ASIN 463 500
ARC COSINE ACOS 464 502
AR C TAN GE N T ATAN 4 65 50 3
SQUARE ROOT SQRT 466 505
EXPONENT EXP 467 507
LOGARITHM LOG 468 509
EXPONENTIAL POWER PWR 840 511
Instruction Mnemonic Function code Page
Single-precision Floating-
point Symbol Comparison
Instructions
LD, AND, OR
+
=F, <>F, <F, <=F, >F,
or >=F
329 to 334 512
FLOATING-POINT TO
ASCII
FSTR 448 516
ASCII TO FLOATING-
POINT
FVAL 449 521