Difference between revisions of "Compose Bits Byte (LogiX node)"
Jump to navigation
Jump to search
(Created page with "<languages></languages> <translate> <!--T:1--> {{Infobox Logix Node | Name = Compose Bits Byte | Image =File: ComposeBits_byteNode.png | noframe | 128px | 'Compose Bits Byte...") |
m (oops) |
||
Line 23: | Line 23: | ||
== Examples == <!--T:4--> | == Examples == <!--T:4--> | ||
− | The following example showcases the binary number <code> | + | The following example showcases the binary number <code>11010010</code> being converted to the byte with value <code>210</code>. |
[[File:Logix Example ComposeBitsByte.png]] | [[File:Logix Example ComposeBitsByte.png]] |
Revision as of 04:30, 12 June 2023
Compose Bits Byte | ||
---|---|---|
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
.