How to print value in exponential (scientific) format with C

1 Answer

0 votes
#include <stdio.h>

int main(void)
{
    double d = 1234567.098;

    printf("%e", d);
}




/*
run:

1.234567e+06

*/

 



answered Feb 11, 2023 by avibootz

Related questions

1 answer 211 views
1 answer 216 views
1 answer 200 views
1 answer 219 views
1 answer 219 views
1 answer 188 views
188 views asked Apr 7, 2018 by avibootz
...