Returns a number shifted right by shift_amount bits.
Name | Type | Description |
arg1 | number | Is the decimal representation of the binary number you want to evaluate. |
arg2 | number | Is the number of bits that you want to shift Number right by. |
builder.CreateFile("xlsx"); var oWorksheet = Api.GetActiveSheet(); var oFunction = Api.GetWorksheetFunction(); oWorksheet.GetRange("A1").SetValue(oFunction.BITRSHIFT(13, 2)); builder.SaveFile("xlsx", "BITRSHIFT.xlsx"); builder.CloseFile();