Uisng BlitzBasic Floats

BlitzPlus Forums/BlitzPlus Programming/Uisng BlitzBasic Floats

Zooker(Posted 2006) [#1]
Does anyone remember how many bytes an integer and a Float where in BlitzBasic? I'm still using it and I like it?


aab(Posted 2006) [#2]
Wouldnt it depend on the processor you were compiling towards?


Grey Alien(Posted 2006) [#3]
nah, not these days. An Integer is 4, I think float is 8 (hense the term double) but could be wrong about the float. I guess a Integer could be 64bits (thus 8 bytes) on a 64 bit processor but I'm pretty sure that Blitz Plus WON'T make use of that without being recoded.


Yan(Posted 2006) [#4]
***ALWAYS***
integer = 4 Bytes
float = 4 Bytes


Grey Alien(Posted 2006) [#5]
well there you go. I'm used to Delphi where a Float (called Extended) IS 8 bytes and on older systems an Int was only 16-bit.


CS_TBL(Posted 2006) [#6]
Dunno why this one disappeared from the archives... it *was* there. Anyway, handy function working with banks, and you want to inspect bytes, shorts, ints, floats.

MonitorBank bank ; the other 2 arguements are not for you :P