Math.BitwiseShiftRight
----------------------

Perform bitwise shift right.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Math](component_Math.md) | [4.1](newinversion41.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "Math.BitwiseShiftRight"; Value; steps ) 

**MBS**( **"Math.BitwiseShiftRight";** /\* Perform bitwise shift right. \*/  
**$Value**; /\* The number to shift.e.g. 2 \*/   
**$steps**) /\* The number of steps to shift.e.g. 1 \*/ 

### 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

- [Math.BitwiseAND](MathBitwiseAND.md)
- [Math.BitwiseShiftLeft](MathBitwiseShiftLeft.md)
- [PortMidi.ReadMessage](PortMidiReadMessage.md)
- [SQL.ClientVersion](SQLClientVersion.md)
- [WMFP.GetVideoFrameRate](WMFPGetVideoFrameRate.md)

### Release notes

- **Version 7.3**
    - Improved [Math.BitwiseAND](http://www.mbsplugins.eu/MathBitwiseAND.shtml), [Math.BitwiseOR](http://www.mbsplugins.eu/MathBitwiseOR.shtml), [Math.BitwiseNOT](http://www.mbsplugins.eu/MathBitwiseNOT.shtml), [Math.BitwiseXOR](http://www.mbsplugins.eu/MathBitwiseXOR.shtml), [Math.BitwiseShiftRight](http://www.mbsplugins.eu/MathBitwiseShiftRight.shtml) and [Math.BitwiseShiftLeft](http://www.mbsplugins.eu/MathBitwiseShiftLeft.shtml) to use 64-bit integers instead of 32-bit.

### Example Databases

- [Win Only/Receive System Notifications](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Win%20Only/Receive%20System%20Notifications.shtml#3ScriptAnchor_)

### Blog Entries

- [MBS FileMaker Plugin, version 7.3pr7](https://www.mbsplugins.de/archive/2017-07-15/MBS_FileMaker_Plugin_version_7/monkeybreadsoftware_blog_filemaker)
- [MBS Filemaker Plugin, version 4.1pr5](https://www.mbsplugins.de/archive/2014-03-14/MBS_Filemaker_Plugin_version_4/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 18th August 2014 , last changed 14th July 2017

  
[Math.BitwiseShiftLeft](MathBitwiseShiftLeft.md) - [Math.BitwiseXOR](MathBitwiseXOR.md)

[HTML Version](MathBitwiseShiftRight.shtml)