0 votes
in General Knowledge by (744k points)
Give an example where IEEE 754 encoded values are less precise than integers.

1 Answer

0 votes
by (744k points)
 
Best answer
Consider:
1.00000000000000000000000 * 2^50 = 1,125,899,906,842,624.0.

Let's increment this value with the minimum amount that we can:
1.00000000000000000000001 * 2^50 =
1,125,900,041,060,352.0

That's a difference of 134 million... not very precise.
Welcome to the Answerine , a great place to find, read and share your favorite questions and answers.
...