#### Archived

This topic is now archived and is closed to further replies.

# Large Integers Problem...

This topic is 5454 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Hi there... Let me explain my situation and then my question so you can (hopefully) understand. I''ve managed to export a galaxy map from a game into an Access db. The galaxy map consists of stars with coords in doubles - numbers ranging from -5.08743946216136E+33 to 3.36522971264518E+33 with middle values of about -1.49878399698404E+14 My problems comes with this... So far, I''ve been dividing these HUGE numbers by 1E+30, to get them all down to between +/- 10000.0. However this causes a problem with the numbers that are only E+14, as they loose all form of accuracy they ever had and all tend to round down to 0.0, meaning that I have many ''stars'' on my map lying along the 0.0 x,y,z boundaries... If anyone understands my problem please post and gimme a hand!!! Cheers, Chris

##### Share on other sites
What''s the problem? Is that not what you expected to happen? What do you want to happen? If you want to get it more evenly spaced, then you can, perhaps divide it by a logorithmic scale, though I don''t know why you''d want to do that.

##### Share on other sites
For the most part, it works well, as most of the numbers just shrink... However, most of the numbers in the E+25 to E+15 range get way way to small and just round down to 0.0 and sit exactly on the axis...

Any recommendations as to how to get around this problem? Can I setup an OpenGL app to show things that are +/- 1E+33 ?

##### Share on other sites
If you use doubles to store your values, it shouldn''t round.

##### Share on other sites
Ok, I''ll give it a go - I think I''m using floats at the moment - cheers!

1. 1
2. 2
Rutin
22
3. 3
4. 4
frob
17
5. 5

• 33
• 13
• 12
• 10
• 12
• ### Forum Statistics

• Total Topics
632573
• Total Posts
3007140

×