Problem 1 << 2

BlitzMax Forums/BlitzMax Beginners Area/Problem 1 << 2

I think that means bitwise shift left by 2. I don't remember the max command for doing that, but unless I'm getting my bit shifts backwards, it's just a faster way of multiplying by 4.

Bitwise shifting results in a multiply or a divide when used on integers. If N is the number of places shifted, then the multiply or divide will be 2^N, so a shift of 3 bits would be * or / 8, 4 would be * or / 16, etc. Unless you know exactly what you're doing, don't attempt bitwise shifts on floats.