c++ when to use float or double code example
Example 1: double to float c++
double v1 = 20120313.0;
float v2 = (float) v1;
Example 2: how to make a float in C++
public float whatYourFloatIsCalled = 0;
public float whatIsYourFloat;
double v1 = 20120313.0;
float v2 = (float) v1;
public float whatYourFloatIsCalled = 0;
public float whatIsYourFloat;