ISRL

ISRL(x,n) returns the result of logically shifting x to the right by n places, and padding on the left with zeroes.

Read syntax diagramSkip visual syntax diagram
>>-ISRL(x,n)---------------------------------------------------><

x
Expression. x must have a computational type.
n
Expression. n must have a computational type.

The attributes of the result are determined as follows:

The result is undefined if n is negative or if n is greater than M.

If x is nonnegative, ISRL(x,n) is equivalent to LOWER2(x,n); if x is negative, ISRL(x,n) is positive, unless n=0.

Examples

  isrl(+6,1)            /*  produces 3           */
  isrl(-6,1)            /*  produces 2147483645  */





Published: 23 December 2018