K
kj
Let INT_TYPE stand for some "integer type", like int or long. And
let WIDEST_FLOAT_TYPE stand for the widest float type available,
double, or long double, or whatever. Now suppose that, in the code
below, x is of type INT_TYPE.
Does the standard require that the following expression always
evaluate to true?
x == (INT_TYPE) (WIDEST_FLOAT_TYPE) x;
TIA!
kj
let WIDEST_FLOAT_TYPE stand for the widest float type available,
double, or long double, or whatever. Now suppose that, in the code
below, x is of type INT_TYPE.
Does the standard require that the following expression always
evaluate to true?
x == (INT_TYPE) (WIDEST_FLOAT_TYPE) x;
TIA!
kj