C int, float, double
Posted
by anon
on Stack Overflow
See other posts from Stack Overflow
or by anon
Published on 2010-05-08T21:08:54Z
Indexed on
2010/05/08
21:18 UTC
Read the original article
Hit count: 205
There are certain int values that a float can not represent.
However, can a double represent all values a float can represent? (My intuition says yes, since double has more fractional bits & more exponent bits, but there might be some silly gotchas that I'm missing).
Thanks!
© Stack Overflow or respective owner