- Announcement about May 10th, 2018 update and your password.
Array To Binary, and Convert that from Binary To Decimal
I am working a a program that fetches data from an ADC using SPI,
I am able to store the values of the sensor in an array
that looks somewhat like this [0,1,0,1,1,0,1,0]
I have found a binaray to decimal converter
return (((BCD >> 4) * 10) + (BCD & $F)) (https://forums.parallax.com/discussion/134931/binary-to-decimal
How am i able to convery my array to a proper binary number and then convert that to decimal?
I'm sorry if this question seems dumb i have only experimented with the propeller tool a few days