Compose Bits Byte (LogiX node)

From Neos Wiki
Jump to navigation Jump to search
Other languages:
Compose Bits Byte
'Compose Bits Byte' LogiX node
Inputs
  Bool Bit0
  Bool Bit1
  Bool Bit2
  Bool Bit3
  Bool Bit4
  Bool Bit5
  Bool Bit6
  Bool Bit7
Outputs
  Byte Integer

The Compose Bits Byte node takes a series of boolean values, interprets the boolean values as bits, and converts the bits to a byte.

Usage

This node takes 8 boolean values as input, and outputs a byte. If an input is true, its value is 1. Otherwise, its value is 0. The least significant bit is at the top, and the most significant bit is at the bottom.

Examples

The following example showcases the binary number 11010010 being converted to the byte with value 210.

Logix Example ComposeBitsByte.png

Node Menu

Math / Binary
Back Adder Boolean Counter Compose Bits Byte Compose Bits Int Compose Bits Long Compose Bits Sbyte
Compose Bits Short Compose Bits Uint Compose Bits Ulong Compose Bits Ushort Double As ULong Extract Bits Byte Extract Bits Int
Extract Bits Long Extract Bits Sbyte Extract Bits Short Extract Bits Uint Extract Bits Ulong Extract Bits UShort Float As UInt
Half As UShort HalfAdder UInt As Float ULong As Double UShort As Half