Multichannel-systems NeuroExplorer Bedienungsanleitung Seite 305

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 373
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 304
5.5.13.25. GetBit Function
GetBit Function
Returns the value of the specified bit (1 to 32).
Syntax
double GetBit(number, bitNumber)
Parameters
Parameter Type Description
number double Numeric value.
bitNumber double 1-based bin number. 1 is the least significant bit, 32
is the most significant bit.
Returns
Returns the value (0 or 1) of the specified bit.
Comments
The first parameter is converted to an unsigned 32-bit integer and then the bit value of this unsigned
integer is returned.
Usage
NexScript
% get the second bit of 3
b2 = GetBit(3, 2)
% b2 is now equal to 1
See Also
Introduction to NexScript Programming
NexScript Function Categories
Page 303
Seitenansicht 304
1 2 ... 300 301 302 303 304 305 306 307 308 309 310 ... 372 373

Kommentare zu diesen Handbüchern

Keine Kommentare