My assumptions for IEEE 754-2008:
binary16 – 2^16 distinct values,
binary32 – 2^32 distinct values,
…
binary128 – 2^128 distinct values.
Is this correct?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is a trick question.
The floating-point formats define some special values. Whether you count these as distinct depends on your point of view. The following is for double-precision (binary64):
So, to summarize:
2*(2^11-1)*2^52-1 = 18,437,736,874,454,810,623.For binary16, the number of distinct real numbers is
2*(2^5-1)*2^10-1 = 63,487. For binary32, it’s2*(2^8-1)*2^23-1=4,278,190,079. For binary128, it’s2*(2^15-1)*2^112-1or about3.4*10^38.