How to print scientific notation as decimal number in in Python

2 Answers

0 votes
print("{:.8f}".format(float("8.99284722486562e-02")))

   
   
   
'''
run:
   
8.95e-05
   
'''

 



answered Feb 19, 2023 by avibootz
0 votes
print("{:.2f}".format(float("8.247e+09")))

    

    
'''
run:
    
8247000000.00

'''

 



answered Feb 19, 2023 by avibootz

Related questions

...