#include <iostream>
int main()
{
double c(0.0134);
double diff;
std::cout << diff << std::endl;
diff = c /10.0;
std::cout << diff;
return 0;
}
With g++ it will print:
6.95322e-310 (or something similar...)
0.00134
You're probably checking the value of diff
in the debugger before the assignment is performed.