Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Qn.m format for representing floating numbers as fixed point:

Status
Not open for further replies.

vickyuet

Member level 2
Joined
Oct 3, 2006
Messages
50
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
pakistan
Activity points
1,691
Dear All,

I need to know about the range of Qn.m format number for both signed and unsigned numbers,
For example,
I had 8 bits for representation of a number and format is Q3.5.what is the maximum and minimum floating point number that I can represent ?Give me a general formula for finding the range.

REgards,
 

in fixed point, each bit represents 2^n. In the case of fixed point, all integer values are 2^n, and fractional bits are 2^-m, where m is the bit position relative to the decimal point.

So, a 3.5 fixe point number represents:

-4 to + 3.96875 (or 4 - 2^-5), with accuracy of 2^-5 (in signed)
0 to 7.96875 (8- 2^-5) with accuracy of 2^-5 (in unsigned)

Fixed point is treated like an integer for the purposes of arithmatic.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top