BitSh
Last updated
Was this helpful?
Performs a bitwise shift-left or shift-right, no-rotation operation.
BitSh(number=[integer], count=[integer])number
integer
true
Numeric value to shift.
count
integer
true
Number of bits to shift (Integer in the range 0-31, inclusive).
Uses the function bitShrn to perform a bitwise shift-right operation (no-rotation)
bitShrn( 5, 1 );
Result: 2
Last updated
Was this helpful?
Was this helpful?
writeOutput( bitSHRN( 128, 5 ) );
