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

...