How Do I Convert A BCD To Floating Point (FLT)? - CX-Programmer
For a BCD number to be converted to a Floating Point (FLT) number, we must first convert the BIN (023) command into a binary (HEX) value, then the binary value can be converted to a value for the FLT FLT (452) instruction.
If you want to convert a FLT value to a BCD value, then first convert the FIX (450) instruction to the binary value, and then convert binary value to the BCD (024) instruction and convert it to a BCD value.
For double addresses use BINL (058), FLTL (453), FIXL (451) and BCDL (059) instructions.
Link:
http://www.myomron.com/index.php?action=kb&print=98
|