numeric.bitSHRN()
Performs a bitwise shift-right, no-rotation operation.
numeric.bitSHRN( count=number )
Returns: Number
Argument | Description |
---|---|
count
number,
required
|
Integer, in the range 0-31, inclusive. Number of bits to shift the number |
Examples
writeOutput(32.0.bitSHRN(5));writeOutput("</br>");
writeOutput(32.0.bitSHRN(4));writeOutput("</br>");
writeOutput(32.0.bitSHRN(3));writeOutput("</br>");
writeOutput(32.0.bitSHRN(2));