How to set scientific notation value to double variable in C++

1 Answer

0 votes
#include <iostream>

int main() {
    double scientificd = 1.23456e4;

    std::cout << scientificd;
}




/*
run:
    
12345.6
    
*/

 



answered Aug 1, 2022 by avibootz

Related questions

1 answer 194 views
1 answer 177 views
1 answer 165 views
1 answer 264 views
1 answer 130 views
2 answers 241 views
...