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 320 views
1 answer 313 views
1 answer 279 views
1 answer 311 views
1 answer 303 views
1 answer 259 views
259 views asked Apr 7, 2018 by avibootz
...