Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Math.BitwiseShiftRight
Perform bitwise shift right.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Math | 4.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "Math.BitwiseShiftRight"; value; steps ) More
Parameters
Parameter | Description | Example |
---|---|---|
value | The number to shift. | 2 |
steps | The number of steps to shift. | 1 |
Result
Returns number.
Description
Perform bitwise shift right.Only for integer numbers.
Updated to use 64-bit signed integers in version 7.3.
Examples
Shifts number. 16 shifted by 2 to right results in 4
MBS( "Math.BitwiseShiftRight"; 16; 2 )
See also
Release notes
- Version 7.3
- Improved Math.BitwiseAND, Math.BitwiseOR, Math.BitwiseNOT, Math.BitwiseXOR, Math.BitwiseShiftRight and Math.BitwiseShiftLeft to use 64-bit integers instead of 32-bit.
Example Databases
Blog Entries
This function is free to use.
Created 18th August 2014, last changed 14th July 2017