×

# Bits fractional part

 0 The n - bit fixed point representation of an unsigned real number x uses f bits for the fraction part . Let i= n- f. The range of decimal values for x in this representation is? asked 13 Feb '18, 09:28 94●4 accept rate: 0%

 0 Since given number is in unsigned bit representation, its decimal value starts with 0. We have i bit in integral part so maximum value will be 2^i Thus integral value will be from 0 to 2^i – 1 We know fraction part of binary representation are calculated as (1/0)*2^-f Thus with f bit maximum number possible = sum of GP series with a = 1/2 and r = 1/2 Thus fmax = {1/2(1 – (1/2)^f}/(1 – 1/2) = 1 – 2^-f Thus maximum fractional value possible = 2i – 1 + (1 – 2^-f ) = 2i - 2^-f answered 01 Apr '18, 02:21 1 accept rate: 0%
 toggle preview community wiki:
Preview

By Email:

Markdown Basics

• *italic* or _italic_
• **bold** or __bold__
• image?![alt text](/path/img.jpg "title")
• numbered list: 1. Foo 2. Bar
• to add a line break simply add two spaces to where you would like the new line to be.
• basic HTML tags are also supported
• mathemetical formulas in Latex between \$ symbol

Question tags:

×77

question asked: 13 Feb '18, 09:28

question was seen: 133 times

last updated: 01 Apr '18, 02:21