Hey all, I have a problem with the computer’s display of really large or small numbers with scientific notation. I am making a “Gravity Calculator” and the answer will often be very large or small. The computer displays these numbers as 6.8394048239E-011. Well, that may be okay for a computer nerd, but the public generally doesn’t want to try to decipher that mess of numbers. So what can i do? I have one idea, which I think will work. I just want an opinion before i go about solving the problem.
I think i should convert the ugly number into a text string. then i could use javascript (or php?) to sort the ugly number into two parts: 6.8394048239 and -011 (or -11?). This could pretty easily be transfered into understandable scientific notation. Any better ideas? Brainstorm with me!
Thanks in advace!