int b = 5;
Floating point c = (floating point) a/(floating point) b;
Calculated in this way, there is a decimal; If the type is unchanged, only the integer part is taken.