1, Q: What are the benefits of floating-point arithmetic, in the results of the operation, his small point is also not allowed to carry? What is the difference between floating-point arithmetic and double-precision floating-point arithmetic?
A: Floating-point operations support operations with fractional points. This is the benefit of floating-point operations. Each of the participating operations takes up 2 channels and double-precision floating-point operations occupy 4 channels.
2. In the CP1H series, the result of BCD is that it has a decimal point. How to carry the decimal number? For example /BL(435) #1499664 #1000 D70 makes the value obtained in D70 1500. How to carry in?
A: You can use the comparison remainder implementation. The remainder obtained by /BL division is stored in D72 and D73 channels, and is judged by using the comparison instruction CMP. If carry is required, add #1 to the D70 channel.
3. Is the result of multiplication of floating point numbers a BCD code?
A: The result of the floating-point instruction is a special floating-point format. You can use the FIX instruction to convert the floating-point number to hexadecimal, and then convert the hexadecimal to BCD using the BCD instruction.
4. What is the difference between a signed binary operation and an unsigned binary operation? Does the symbol mean a negative sign? Does it include a decimal point?
Answer: In the binary operation with sign, the highest 15 bits of the result obtained after the calculation is the sign bit. If it is 1: the representative is negative, 0: the positive binary unsigned binary data range is 0000-ffff (4 bits 16) Binary)
0 to 65535 (decimal number) Signed binary data negative range: 8000 ~ ffff (4 digits hexadecimal)
0 to -32768 (decimal) positive range: 0000 to 7fff (4 digits hexadecimal)
0 to 32768 (decimal number)
Insulated Terminals,Terminals,High-quality insulated terminals
Taixing Longyi Terminals Co.,Ltd. , https://www.longyicopperterminals.com