brs()
Perform right shift operation for the every bit of the given number x by y places. The given number y decides the number of places to shift.
brs(x, y, bit_width = 32, unsigned = false)
x (number) — A numbery (number) — A numberbit_width (number, optional) — The given number x, y, and the returned value will be cast to bit_width-bit integer. bit_width must be in between 1 and 32. The default value is 32unsigned (boolean, optional) — If unsigned is true then the sign bit of x, y, and the returned value will be ignored. The default value is false
number — Returns the value of right shift operation of x by y places
a = brs(5, 1, 8, true) ' a = 2 -> Where 00000101 >> 1 is 00000010 (2 in unsigned 8-bit)
This function is available on Dinfio version 3.1.06 or later