I'm trying to read a float value from the keyboard input using scanf.
float n;
printf("Input a float value: ");
scanf("%f", &n);
When I input 4.2, the value of my variable turns to be 4,19999981. screenshot
I need to devide the inputed value by another float value, so I get unrelevant result. I can't limit the number of signs after the comma, cause I don't know how many figures a user wants to input. How to solve the problem?