Implicit / Explicit Conversions
Explicit conversion:(type)variableExample:int j =3;float f = 5.0;float d = (float)j / f; /* d = 0.6 */
Implicit conversion:int j =3;float f = 5.0;float d = j / f; /* d = 0.6 */there will be no integer division, j isimplicitly converted to a float
Not all machines support conversionsbetween doubles and floats, so use either one (only floats or only doubles).