How do I tell the computer to write (0.0000001) in scientific notation manually | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How do I tell the computer to write (0.0000001) in scientific notation manually

Python code, when i write (1e-6) in say,s 'e is not defined'

2nd Apr 2019, 8:13 PM
MrZixpack
MrZixpack - avatar
4 Answers
+ 2
I verified on my computer, on windows with Python 3.7.1 it works for me correctly, exactly as posted by Luis Sepúlveda MrZixpack can you confirm what version of Python you use and what is the exact code thats not working for you?
2nd Apr 2019, 8:35 PM
Tibor Santa
Tibor Santa - avatar
+ 1
Weird, I just checked and it worked for me: https://code.sololearn.com/cQr07z1tBlTA/?ref=app
2nd Apr 2019, 8:18 PM
Luis Sepúlveda
Luis Sepúlveda - avatar
0
Luis Sepúlveda Am writing it in a pc and when I write it, it doesn't highilght 'e'. Which means it takes 'e' as a float
2nd Apr 2019, 8:28 PM
MrZixpack
MrZixpack - avatar
0
Tibor Santa I manually changed it to (0.000006), you can try to run it your pc. Am using python 3 in windows and I run them on Jupyter notebook
2nd Apr 2019, 8:54 PM
MrZixpack
MrZixpack - avatar