REBOL 3 Docs Guide Concepts Functions Datatypes Errors
  TOC < Back Next >   Updated: 3-Aug-2010 Edit History  

REBOL 3 Functions: shift

shift  value  bits  /logical

Shifts an integer left or right by a number of bits.

Arguments:

value [integer!]

bits [integer!] - Positive for left shift, negative for right shift

Refinements:

/logical - Logical shift (sign bit ignored)

Description

Supports right or left bits shifts on integers.


  TOC < Back Next > REBOL.com - WIP Wiki Feedback Admin