double a = 0.0000005l;
char aa[50];
sprintf(aa,"%lf",a);
printf("%s",aa);
Output:s0.000000
In the above code snippet, the variable aa can contain only 6 decimal precision. I would like to get an output "s0.0000005". Could you please advice me on how to achieve this? Thanks