Aug 5, 2015 #1 S saqib49 Newbie level 6 Joined May 9, 2011 Messages 14 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Activity points 1,385 how to convert real number to q1.7 format.. lets say i wants to convert 3.5 and -3.5 into q1.7 and q15 format
how to convert real number to q1.7 format.. lets say i wants to convert 3.5 and -3.5 into q1.7 and q15 format
Aug 5, 2015 #2 FvM Super Moderator Staff member Joined Jan 22, 2008 Messages 52,830 Helped 14,775 Reputation 29,835 Reaction score 14,207 Trophy points 1,393 Location Bochum, Germany Activity points 299,912 You need at least two integer bits to represent +3.5 and -3.5 in fixed point (presuming there's an additional sign bit). https://en.wikipedia.org/wiki/Q_(number_format)
You need at least two integer bits to represent +3.5 and -3.5 in fixed point (presuming there's an additional sign bit). https://en.wikipedia.org/wiki/Q_(number_format)