[REBOL] Re: Arithmetic shifts
From: carl:cybercraft at: 17-Aug-2004 19:43
>JAM> How can I perform an arithmetic shift (or a floored division) in
>to integer! value / radix
Note that to-integer (or to integer!) isn't always required to return an integer with
>> type? 3 / 2
>> type? 4 / 2
>> type? 12 / 4
Which also allows us to do the likes of this...
>> x: 5 and 254 / 2
>> type? x
I suspect this has speed advantages too, though I've not done any tests.
-- Carl Read