Assuming I have this :
double a = 51234;
printf("%8.3e",a);
The output that I get is
5.123e+004
How do I delete the zeros and get an output like this : 5.123e+4
?
Assuming I have this :
double a = 51234;
printf("%8.3e",a);
The output that I get is
5.123e+004
How do I delete the zeros and get an output like this : 5.123e+4
?