SHL Function

SHL(a, n)

Shifts the bits in a to the left n times. Zeros are shifted in.

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

SHL(16#00000008, 2) returns 16#00000020

 

See Also

SHR Function | ASHR Function | ROL Function | ROR Function | Standard Functions


Send comments on this topic.

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