SHR(a, n)
Shifts the bits in a to the right 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
SHR(16#00000008, 2) returns 16#00000002
See Also
SHL Function | ASHR Function | ROL Function | ROR Function | Standard Functions
Copyright © 2024 Delta Computer Systems, Inc. dba Delta Motion