[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
FN_SHR()
Shift the bits in an integer to the right
------------------------------------------------------------------------------
Syntax
fn_shr( <nInt> | <cInt>, <nBits> ) -> nResult
Arguments
<nInt> may either be a numeric integer, or a 16-bit character string
that is the binary representation of a numeric integer.
<nBits> is the number of bits to shift right and must be a numeric.
Returns
<nResult>, a numeric
Description
The value returned is obtained by shifting the bits in <nInt> to
the right. <nBits> determines the number of bits to shift.
If any parameters are invalid, the function will return zero.
Examples
? fn_shr( 12, 2 ) // 3
Source: N:\SRC\MISC\FNSHR.ASM
Author: Ted Means
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson