Type Byte

BlitzMax Forums/BlitzMax Beginners Area/Type Byte

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

The compiler will propably clamp the value to one byte, so
MyByte:Byte = 2000
becomes
MyByte:Int = 2000 & $FF

The benchmark (PC):
Byte Operations took: 4511 milliseconds.
Short Operations took: 4569 milliseconds.
Integer Operations took: 4488 milliseconds.

(Mac)
Byte Operations took: 3626 milliseconds.
Short Operations took: 3569 milliseconds.
Integer Operations took: 3419 milliseconds.

-- Byteemoz