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
1720
August 1, 2021
Convert integer to bits array
New to Julia
12
15812
October 14, 2022
UInt8 access Bits?
New to Julia
8
1863
July 31, 2020
Converting bitstring to number
General Usage
bitstring
14
8085
February 13, 2022
How do I convert a binary string to a floating point number?
General Usage
question
,
bitstring
3
5259
March 2, 2019