Why this printf gives me: * 3.02530e+01*?

#include <stdio.h>

int main(void) {
  printf("*%12.5e*", 30.253);
  return 0;
}
1 Like

what is the problem? is there an error? please fill out the form for us to help you better.
Please keep your code in a code fence, like so:

```​
my code here
`​``

The %12.5e in your printf function is a format for scientific notation.

Scientific notation represents numbers as a base and an exponent.
In C, this is represented with e or E

2 Likes