How to set scientific notation value to double variable in C

1 Answer

0 votes
#include <stdio.h>

int main(void)
{
    double scientificd = 1.23456e4;

    printf("%fl", scientificd);

    return 0;
}





/*
run:

12345.600000l

*/

 



answered Aug 1, 2022 by avibootz

Related questions

1 answer 259 views
1 answer 283 views
1 answer 260 views
1 answer 361 views
1 answer 313 views
3 answers 447 views
...