With float a = ...;
and float inva = 1/a;
is x / a
the same as x * inva
?
And what is with this case:
unsigned i = ...;
float v1 = static_cast<float>(i) / 4294967295.0f;
float scl = 1.0f / 4294967295.0f;
float v2 = static_cast<float>(i) * scl;
Is v1
equal to v2
for all unsigned integers?