02-24-2009 12:59 AM
Hi,
I have a hexadecimal value which contains 14bits two complement. How can I convert this to an integer value?
Your help is greatly appreciated.
Regards,
Chathuri
02-24-2009 01:15 AM
Hi Chathuri,
how do you have the value? In which format, in which type of control? Can you give more information. Maybe you can give the hexadecimal value and the expected result.
Mike
02-24-2009 01:25 AM
hi Mike,
i have a string control which I have typed the value let's say 3E6B. The format for the string control has been set to hexa decimal. The 3E6B is a 14bit value which is two complement. So when I convert it to an integer the value I should get is -405 in decimal.
Let me know if you need anymore clarifications.
Thanks!
02-24-2009 01:53 AM
This should fix your problem 😉
02-24-2009 03:44 AM