Scientific Notation Conversion

Joined
Feb 19, 2008
Messages
3
Reaction score
0
Hi, I am new here and I found this site from a reply on 2005 in the python forum about a similar problem I am having, only it was a bit different.

I need a procedure to convert extremely large numbers from scientific notation to a large area of memory. The numbers are as large as 60111^9888777 and obviously to re-multiply 60111 nearly 10 million times sounds like something a supercomputer must do first, but for my specific situation a regular PC must be able to do it.

I am creating a calculator emulator at assembly level since the math processing on my 32 bit computer will not work. So since I am going to be working with this number at low level binary, I was hoping for some kind of shortcut, perhaps mathematical, that would convert the result with significantly less processing at an emulation level.

I am asking in a C++ forum because most of the program is written in that language with inline asm where it needs to be.

Thanks in advance for your help.
 
Joined
Feb 19, 2008
Messages
3
Reaction score
0
I figured out the answer on my own, and I also realized that this forum is not an appropriate place to ask this question because the answer is heavily in the realm of mathematics and not in C++ specific syntax as this forum seems to focus on.

For any of you who are interested in the answer, there is a couple of good examples of techniques that reduce the amount of multiplication needed to compute the power of numbers on wikipedia under the keyword "exponent".
 

Ask a Question

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.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,129
Latest member
FastBurnketo
Top