xHarbour Reference Documentation > Function Reference |
Retrieves the low byte of a 16 bit integer.
NumLow( <nInteger>|<cHex> ) --> nLowByte
The function returns the low byte of a 16-bit integer as a numeric value.
See also: | NumHigh() |
Category: | CT:NumBits , Numbers and Bits |
Source: | ct\numlohi.c |
LIB: | xhb.lib |
DLL: | xhbdll.dll |
// The example displays the low byte of a 16-bit integer. PROCEDURE Main LOCAL nValue := HexToNum( "ABCD" ) LOCAL nByte ? nValue // result: 43981 ? nByte := NumLow( nValue ) // result: 205 ? NumToHex( nByte ) // result: CD RETURN
http://www.xHarbour.com