ROL Function

ROL(a, n)

Rolls the bits in a to the left n times.

Parameters

a(DINT or DWORD)

The value to shift.

n(DINT)

The number of times to shift a. n must be between 0 and 31.

Return Value

Returns the same data type as a.

Remarks

The result of an invalid n is undefined.

Examples

ROL(16#8000000F, 2) returns 16#000003C2

 

See Also

ROR Function | SHR Function | SHL Function | ASHR Function | Standard Functions


Send comments on this topic.

Copyright © 2024 Delta Computer Systems, Inc. dba Delta Motion