str2bin not behaving?
Author
Message
toml_12953
Guru
Joined: 13/02/2015
Location: United StatesPosts: 427
Posted: 05:38pm 04 Mar 2021
johngill said
Hi all,
I don't know if it's me being a plantpot, but as far as I understand it, this should give me the value 22:
print str2bin(uint8,"00010110",BIG)
I've put eight 0s and 1s in the string, and it's still giving me string length error. Am I doing something wrong or is this a firmware bug?
I'm on 5.07.00b19
thanks!
Try
PRINT VAL("&B"+"00010110")