ASHR(a, n)
Shifts the bits in a to the right n times. The sign bit is shifted in on the left.
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
ASHR(16#FFFF0008, 2) returns 16#FFFFC0002
See Also
SHR Function | SHL Function | ROL Function | ROR Function | Standard Functions
Copyright © 2024 Delta Computer Systems, Inc. dba Delta Motion