chronicsilence 12 Posted May 25, 2015 To make this succinct: _number = 90984112; systemChat str (_number == _number - 1); // prints out "true" I'm scripting a mission that requires large number representation, and I'm running into this nightmare. Even a signed 32-bit integer can handle a positive value of over 2 billion, but this can't seem to handle anything over 16777298. I guess it's using 24-bit representation? Does anyone know of a way to use numbers larger than 16,777,298 and not have it lose precision? Share this post Link to post Share on other sites
AZCoder 921 Posted May 25, 2015 Take a look at this posting by Killzone Kid, but essentially numbers start rounding to 1x10^7. http://killzonekid.com/arma-scripting-tutorials-float-to-string-position-to-string/ Share this post Link to post Share on other sites
killzone_kid 1326 Posted May 25, 2015 Take a look at this posting by Killzone Kid, but essentially numbers start rounding to 1x10^7.http://killzonekid.com/arma-scripting-tutorials-float-to-string-position-to-string/ Think this one explains even better http://killzonekid.com/arma-scripting-tutorials-kk_fnc_inttostring/ Share this post Link to post Share on other sites
chronicsilence 12 Posted May 25, 2015 Thanks for the link, I assume that function is probably very similar to BIS_fnc_numberText. Even with his function though, it looks like there's no way to keep precision above 10^7 because the internal scalar representation itself loses the precision. Share this post Link to post Share on other sites