binary_shift_right()
Learn how to use the binary_shift_right() function to perform a binary shift right operation on a pair of numbers.
Returns binary shift right operation on a pair of numbers.
Syntax
binary_shift_right(value,shift)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| value | int | ✔️ | The value to shift right. |
| shift | int | ✔️ | The number of bits to shift right. |
Returns
Returns binary shift right operation on a pair of numbers: value » (shift%64). If n is negative, a NULL value is returned.
Examples
binary_shift_right(1,2)
Output
| Result |
|---|
| 0 |
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.