I am using it in the short form like the following,
Code: Select all
#include <stdio.h>
int main(){
float f;
f=5/2.0;
printf ("%f",f);
}
Note the "2.0".

. You could make either one of them as float.
-- Sorry it has already been answered. I did not read the whole thing except the codes.