alplus Member A Join Date Nov 2018 Location mtl Posts 4 Nov 1, 2018 #1 Hi Guys, i'm begginer and i'm trying to convert a real value (not fix value) to BCD. It works if i put fix real value but when i put variable real value, the conversion not working. any idea ? Thank you.
Hi Guys, i'm begginer and i'm trying to convert a real value (not fix value) to BCD. It works if i put fix real value but when i put variable real value, the conversion not working. any idea ? Thank you.
mendonsy Member Join Date Feb 2009 Location Western NY Posts 801 Nov 1, 2018 #2 Converting floating point (REAL) to BCD requires two steps. You must first use the FIX instruction to convert the floating point value to binary (INT) then use the BCD instruction to convert the binary value to BCD.
Converting floating point (REAL) to BCD requires two steps. You must first use the FIX instruction to convert the floating point value to binary (INT) then use the BCD instruction to convert the binary value to BCD.
alplus Member OP A Join Date Nov 2018 Location mtl Posts 4 Nov 1, 2018 #3 mendonsy... will try and let you know .. many thank for replying