10-17-2013 03:02 PM
Hello ,
I am having a 12 bit boolean array (tru/false) as input and the final output desired is a double precison floating point .Can anyone help ..
I am meanwhile converting booelan array to number but this just gives the regular integer value .. for eg
111111111111 ---> 4095 ---> 5.00
so my final vaslue should be 5.00 but i am unable to figure out how to ??any suggesstions?
Thanks
10-17-2013 03:15 PM
A double-precision value is 64 bits. Which of those bits correspond to the 12 in your array? How do you know that 4095=>5.0? If you can define the meaning of the 12-bit value, then we can explain how to convert it to an equivalent 64-bit, floating point value.
10-17-2013 03:37 PM
Divide the integer with 4095 and multiply by 5.
/Y