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 255 views
1 answer 281 views
1 answer 258 views
1 answer 358 views
1 answer 311 views
3 answers 442 views
...