Skip to main content

BITRSHIFT

Returns a number shifted right by the specified number of bits.

Syntax

expression.BITRSHIFT(arg1, arg2);

expression - A variable that represents a ApiWorksheetFunction class.

Parameters

NameRequired/OptionalData typeDefaultDescription
arg1RequiredApiRange | ApiName | numberThe decimal representation of the binary number to evaluate.
arg2RequiredApiRange | ApiName | numberThe number of bits by which the number will be shifted right.

Returns

number

Example

let worksheet = Api.GetActiveSheet();
let func = Api.GetWorksheetFunction();
worksheet.GetRange("A1").SetValue(func.BITRSHIFT(13, 2));