cast a double to a float then back to a double in c code example Example: double to float c++ double v1 = 20120313.0; float v2 = (float) v1;