Binary "Shift Left" operator?
Mark Smith
mark at maseurope.net
Wed Apr 30 11:26:26 EDT 2008
Colin, - not until too late!...
Mark
On 30 Apr 2008, at 16:08, Colin Holgate wrote:
> At 3:58 PM +0100 4/30/08, Mark Smith wrote:
>> function shiftLeft pNum, pSteps
>> if pNum = 0 then return 0
>> if pSteps is empty then put 1 into pSteps
>> put pNum * (2 ^ pSteps) into tShiftedNum
>> if tShiftedNum > 2 ^ 32 then subtract 2 ^ 32 from tShiftedNum
>> return tShiftedNum
>> end shiftLeft
>
> Did you read my other message, where I suggested that doing a mod
> would solve the same issue?
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list