I
ilovesss2004
If I run
1.0/10**10
python will return 0
How can I make python return 1e-10?
1.0/10**10
python will return 0
How can I make python return 1e-10?
If I run
1.0/10**10
python will return 0
How can I make python return 1e-10?
If I run
1.0/10**10
python will return 0
How can I make python return 1e-10?
If I run
1.0/10**10
python will return 0
How can I make python return 1e-10?
If I run
1.0/10**10
python will return 0
Python 2.6.4 (r264:75706, Dec 11 2009, 23:02:59)
[GCC 3.4.6] on linux2
Type "help", "copyright", "credits" or "license" for more information.
1e-10
What version are you using?
How can I make python return 1e-10?
If necessary, cast everything to a float:
1e-10
If I run
1.0/10**10
python will return 0
Python 2.6.4 (r264:75706, Dec 11 2009, 23:02:59)
[GCC 3.4.6] on linux2
Type "help", "copyright", "credits" or "license" for more information.
1e-101.0/10**10
What version are you using?
How can I make python return 1e-10?
If necessary, cast everything to a float:
1e-101.0/float(10**10)
I use python 2.5
Must change version? Is there any other solution?
I use python 2.5
Must change version? Is there any other solution?
ilovesss2004 said:If I run
1.0/10**10
python will return 0
How can I make python return 1e-10?
I use python 2.5
Must change version? Is there any other solution?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.