423,851 Members | 1,358 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 423,851 IT Pros & Developers. It's quick & easy.

relation b/n floating point number representation in bit words

P: 16
I have faced this question in many written interview question, but cant find any accurate solution.
My question is:

Accuracy of the floating point numbers representable in two 16-bit words of a computer is approximately ...........?

How can I solve this problem?
Jun 24 '14 #1
Share this Question
Share on Google+
1 Reply


Expert 100+
P: 1,510
16bit is Half precision floating point and in the IEEE format the mantissa is 9 bits and gives approximately 3 decimal digits of significant precision.

for example, see documentation on the ARM microcontroller
http://infocenter.arm.com/help/index...124233455.html

and gcc compiler documentation
https://gcc.gnu.org/onlinedocs/gcc/Half-Precision.html

in the case of 32-bit (single precision floating point) the precision is approximately 7 decimal digits
http://en.wikipedia.org/wiki/IEEE_754-1985
Jul 27 '14 #2

Post your reply

Sign in to post your reply or Sign up for a free account.