Julia Programming Language
Parse an array of bits (`BitArray`) to an integer
New to Julia
question
ellocco
May 11, 2023, 11:52am
28
Another option is:
bool2int(_boolarr) = evalpoly(2, reverse(_boolarr))
see: vector-bool-to-int
1 Like
show post in topic
Related topics
Topic
Replies
Views
Activity
Convert UInt array to bitarray
General Usage
convert
4
1740
August 1, 2021
Convert integer to bits array
New to Julia
12
16014
October 14, 2022
Convert vector of binaries to decimal and/or hex
New to Julia
numbers
,
convert
4
46
January 20, 2025
UInt8 access Bits?
New to Julia
8
1889
July 31, 2020
Converting bitstring to number
General Usage
bitstring
14
8146
February 13, 2022