How to lose value (if your a billionaire or bank)!

BlitzMax Forums/BlitzMax Beginners Area/How to lose value (if your a billionaire or bank)!

Arowx(Posted 2009) [#1]
Just and oddity I found...

What would you expect this to do?

Print 3000000000:Long
Print 3000000000


Well I get:
3000000000
-1294967296


Odd but without the :Long identifier the value does not get entered correctly.

I'm wondering if any of those Banks/Finance houses had this problem could explain a lot! ;o)


Dreamora(Posted 2009) [#2]
I would expect it to do exactly what it does

anything that is not defined otherwise is an int in Blitz and an Int wraps at ~2.3B


Jesse(Posted 2009) [#3]
Only if their sofware was made with BMax, I would agree. I felt in that trap 'again' a few posts back:
http://www.blitzmax.com/Community/posts.php?topic=83855#946660