GLBasic forum

Main forum => GLBasic - en => Topic started by: Marmor on 2011-Jan-29

Title: Big numbers Mathematik
Post by: Marmor on 2011-Jan-29
HI,

Is where a fast way to calculate  with big numbers on mobile devices ? ( 4byte )
Should i use a string routine for that , or have someone a better way to do this ?
Title: Re: Big numbers Mathematik
Post by: Ian Price on 2011-Jan-29
Could you pre-calculate the numbers at the start of the game or load them into an array from a save file?

[CURIOUS] What sort of numbers are you talking about (obviously LONGs), but why/for what would you need them? [/CURIOUS]
Title: Re: Big numbers Mathematik
Post by: Moebius on 2011-Jan-30
If you mean long integers can't you just use 'LOCAL MyVar%'?
Title: Re: Big numbers Mathematik
Post by: Marmor on 2011-Jan-30
so mobile devices are using only 4 bytes to store  values
whats why i get not the same numbers as with  win ( 8 bytes)
(the calculate summary is different  )
so i ask
Title: Re: Big numbers Mathematik
Post by: Kitty Hello on 2011-Jan-31
use floats. The 4 byte floats can represent a very big range, too. Just 7 digits of accuracy, but who cares. We caluclate the statics for bridges with 4 byte floats.