xHarbour Reference Documentation > Function Reference |
|
|
NumRolX()
Rotates bits of a numeric integer value to the left.
Syntax
NumRoL( <nMaxBits>, ;
<nInteger>|<cHex> , ;
<nRotate>|<cRotate> ) --> nInteger
Arguments
- <nMaxBits>
- This numeric value specifies the number of bits to use in the operation, beginning
with the least significant bit (LSB). The value of <nMaxBits> must be in the range
between 1 and 32.
- <nInteger>
- A numeric integer value is specified as second parameter.
- <cHex>
- Alternatively, the integer can be passed as a hex-encoded character string (see NumToHex()).
- <nRotate>
- A numeric value defines how many places the bits should be rotated.
- <cRotate>
- Instead of a numeric value, the parameter can be a hex-encoded character string.
Return
The function returns the result of rotating <nMaxBits> bits as a numeric value.
Info
Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe