I am using a bar code scanner to scan a number into my program. A typical bar code number is somewhere around 12 digits long. I have to use a float for this because its too big for an integer. That works... but the only problem is that it also gives me a slew as 0000000's at the end. How can I allleviate this problem?
Code:float i; printf("Please enter the number"); scanf("%f",&i); printf("the number is :%f",i);