I'm trying to do a "simple" division in c and the result is going wrong, I have a float variable that receives the value of a division, in this case the division is a number contained in a long int, but the decimal part is cut when I try to print the variable
#include <stdio.h>
int main() {
long int a = 120510380;
float b;
b = a / 7;
printf("%f", b);
return 0;
}
Expected decimal number with numbers cut off after comma