Is it always possible to convert an `int` to a `float`

Viewed 501

Is a conversion from an int to a float always possible in C without the float becoming one of the special values like +Inf or -Inf?

AFAIK there is is no upper limit on the range of int.

I think a 128 bit int would cause an issue for a platform with an IEEE754 float as that has an upper value of around the 127th power of 2.

3 Answers
Related