i am wishing to scan a float with 1 digit accuration after FP.
this is the test code:
#include <stdio.h>
void main()
{
float f;
scanf("%.1f",&f);
printf("%f",f);
}
i have entered 1.234, expecting to see 1.2 but instead i was seeing this weird result : -107374176.000000
running VS2010, any ideas how to fix please?