From 7:00 PM CST Friday, January 24th - 7:00 PM CST Sunday, January 26th, ni.com will be undergoing system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

bitget (MathScript RT Module Function)

LabVIEW 2012 MathScript RT Module Help

Edition Date: June 2012

Part Number: 373123C-01

»View Product Info
Download Help (Windows Only)

Owning Class: bitwise

Requires: MathScript RT Module

Syntax

c = bitget(a, b)

Description

Returns the value of a bit at a particular position in a number. For example, if a = 10 (1010), bitget(a, 4) = 1.

Examples

Inputs

Name Description
a Specifies a positive integer. a must be less than maxfloatint.
b Specifies the position of the bit whose value you want to know. b is an integer.

Outputs

Name Description
c Returns the value of the bit at position b in integer a. c can be either 0 or 1.

Details

The following table lists the support characteristics of this function.

Supported in the LabVIEW Run-Time Engine Yes
Supported on RT targets Yes
Suitable for bounded execution times on RT Not characterized

Examples

A = 2345
C = bitget(A, 4)

Related Topics

bitand
bitnot
bitor
bitset
bitshift
bitxor
maxfloatint

WAS THIS ARTICLE HELPFUL?

Not Helpful