float normal {0.01};
float small {1.0E-10};
float big {3.4e15};
int num {1};
int denom {2};
float fraction{0}
fraction = num/denom;
type(expression)
float(3) will change the integer 3 to be a float.
int('a') will change the character 'a' into an int.
int num {1};
int denom {2};
float fraction{0}
fraction = float(num/denom);
int num {1};
int denom {2};
float fraction{0}
// all three work
//fraction = num/float(denom);
//fraction = float(num)/denom;
fraction = float(num)/float(denom);
cout <<int(4.9) will produce 4.
intVar = int(float expression + 0.5);