Precautions For Calculation - Brother TC-32B Manual

Table of Contents

Advertisement

TC-32B
7.3.3

Precautions for calculation

(Note 1)
(Note 2)
(Note 3)
(Note 4)
(Note 5)
(Note 6)
2004/01/22
Formula
The right side of the equation can be connected using a constant,
variable, function, or operator. When using a constant, any value
without a decimal point is regarded as having a decimal point at its end.
[Example] #1 =12;, #1 is regarded as 12.000.
Angle calculation
The unit for SIN, COS, TAN, and ATAN functions is "degree".
For example, 90 degrees and 30 minutes is designated as 90.5 degrees.
Logical calculation
Logical sum (OR), logical product (AND), and exclusive-or (XOR)
perform the following calculation for each bit of the integral number.
Decimal places are regarded as "as".
Calculation
Result for AND
object
0 and 0
0 and 1
1 and 0
1 and 1
Conversion between BCD and BIN
BIN indicates binary number.
BCD indicates binary-coded decimal number.
The value of each digit in a decimal number is expressed as a 4-bit
binary number.
[Example] 12 = 0001 (4 bits) 0010 (4 bits)
The binary number 00010010 is the decimal number 18.
When 12 is converted from BIN to BCD, the result will be 18.
Conversion from BCD to BIN is performed in the reverse of the above.
Decimal places in the conversion source number are always regarded
as zero (0).
Range of constant
The range of constants that can be used in the formula is as below.
-999999999 ~ -0.000000010
+0.00000001 ~ +999999999
The maximum number of digits that can be designated is 9 for a decimal
number.
Calculation accuracy
When calculation is performed for the macro statement, small
calculation errors occur and these accumulate as the calculation is
repeated. However, the data is retained internally using up to
approximately 15 significant digits in floating-point format, thus
ensuring calculation accuracy.
7 - 13
Result of OR
0
0
0
1
0
1
1
1
Chapter 7 Macro
Result of XOR
0
1
1
0
eTCOMNCPR7-1.doc
7

Advertisement

Table of Contents
loading

Table of Contents