fork download
  1. #include <cstdio>
  2. using namespace std;
  3.  
  4. int main() {
  5. printf("%%f: %f\n", 0.00083231);
  6. printf("%%5.10f: %5.10f\n", 0.00083231);
  7. printf("%%e: %e\n", 0.00083231);
  8. printf("%%g: %g\n", 0.00083231);
  9. printf("%%a: %a\n", 0.00083231);
  10.  
  11. return 0;
  12. }
Success #stdin #stdout 0s 3096KB
stdin
Standard input is empty
stdout
%f:     0.000832
%5.10f: 0.0008323100
%e:     8.323100e-04
%g:     0.00083231
%a:     0x1.b45ec1d7505e6p-11