vonneuman
Orbinaut
thomas suggested in his randomized planet exploration thread that you could have a "random solarsystem generator". So I have started working on one, Its not as hard as you would think. I am using random number generators to determine the parameters and to choose from modules already installed. Then it will simply export the information in a file.
However I have hit a snag. A random number generator produces numbers that look like this: 351864476. In order for it to work in orbiter it has to look more like this:4.797e2. For stuff like mass and size. My question is how do I get c++ to get numbers into scientific notation?
However I have hit a snag. A random number generator produces numbers that look like this: 351864476. In order for it to work in orbiter it has to look more like this:4.797e2. For stuff like mass and size. My question is how do I get c++ to get numbers into scientific notation?