What\'s the easiest way to truncate a C++ float variable that has a value of 0.6000002 to a value of 0.6000 and store it back in the variable?
float
Use this:
floor(0.6000002*10000)/10000