Reputation: 353
If we have a 32bit pattern of 1111 1111 1000 0000 0000 0000 0000 0000, which is -2^23 in int, when we convert int to float will this be -INF?
Upvotes: 1
Views: 81
Reputation: 215193
Conversions in C operate on values, and the value -2^23 is representable in float
, so the result of the conversion is the value -2^23.
Upvotes: 3