Boolean Array to Number
- Updated2023-02-17
- 1 minute(s) read
Boolean Array to Number
Converts a Boolean array to an integer by interpreting the array as the binary representation of the number. If the number is signed, this node interprets the array as the two's complement representation of the number. The first element of the array corresponds to the least significant bit in the number.

Inputs/Outputs

Boolean array
A 1D array of Boolean values.
This node truncates the Boolean array if it is too long and pads it with Boolean False bits if the Boolean array is too short.

number
An integer that represents Boolean array.
Examples
Boolean array | number |
---|---|
{False, False} | 0 |
{True, False} | 1 |
{False, True} | 2 |
{True, True} | 3 |