How Do I Convert A BCD To Floating Point (FLT)? - CX-Programmer

Modified on Sun, 11 May, 2025 at 10:37 PM

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.

 

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article