01-23-2013 12:17 AM
looking for VI where i can convert covert a float number to Q 11.5 representation and what exactly Q 11.5 representation means.
Kindly help me on the same.
Solved! Go to Solution.
01-23-2013 01:15 AM
@mahadev wrote:
looking for VI where i can convert covert a float number to Q 11.5 representation and what exactly Q 11.5 representation means.
Kindly help me on the same.
Really? A Google search for "q 11.5 notation" brought this up as the sixth hit:
http://en.wikipedia.org/wiki/Q_%28number_format%29
That will tell you just about everything you need to know.
PS - Thanks for making me look it up - I never knew what q number format was!
01-23-2013 03:53 AM
Thanks for the reply ..
What i understood :
To convert float number to Q11.5 notation,
in this case m=11 and n=5.
According to this if my float value is 10.1235 then i need to multiply 10.1235 with 32(2^n=2^5) so the value will be 324.
is it right process ?
kindly clarify me
Thnaks
Mahadev
01-23-2013 06:35 AM
Appears to be right, but don't forget to round to the nearest integer.
http://zone.ni.com/reference/en-XX/help/371361H-01/glang/round_to_nearest/
01-23-2013 06:39 AM
that i have done..
Thanks a lot
01-23-2013 09:51 AM
@mahadev wrote:
that i have done..
Thanks a lot
Very cool - well done!