D
Dave
I'm making a physics that uses very small numbers such as 9.88E-19. that is,
9.88 times 10 to the power of -19. I've run into a few problems doing
calculations with numbers like these.
the first one is that I can't figure out how to write scientific notation
which is that E that I used in the first sentence. it means to multiply by
ten to some power. I know the math.E exists but I don't know how to use it.
Maybe after I figure that first part out, I will fix my other problem
because I enter numbers in like so: 0.00000000000098. and I think the
computer records the 0.0 and that's all. instead of recording 9.8 and the
number of 0's. but the problem is that I can't use the data types double or
decimal because the compiler won't let me multiply them, which makes them
useless, and I end up losing the most important digits in these
calculations. So, is there any standard way of doing such large
calculations? Are there variables I can use like decimal and still be able
to multiply?
thanks
dave
9.88 times 10 to the power of -19. I've run into a few problems doing
calculations with numbers like these.
the first one is that I can't figure out how to write scientific notation
which is that E that I used in the first sentence. it means to multiply by
ten to some power. I know the math.E exists but I don't know how to use it.
Maybe after I figure that first part out, I will fix my other problem
because I enter numbers in like so: 0.00000000000098. and I think the
computer records the 0.0 and that's all. instead of recording 9.8 and the
number of 0's. but the problem is that I can't use the data types double or
decimal because the compiler won't let me multiply them, which makes them
useless, and I end up losing the most important digits in these
calculations. So, is there any standard way of doing such large
calculations? Are there variables I can use like decimal and still be able
to multiply?
thanks
dave