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 324 views
1 answer 317 views
1 answer 286 views
1 answer 315 views
1 answer 307 views
1 answer 265 views
265 views asked Apr 7, 2018 by avibootz
...