I have a bignum formatted like a string like this: "123456789123456789123456789" and I need to check if a specified bit is set. The components are single digits in this string.
Usually I would do it like this if I wanted to check if bit 54 is set: NyNumber&(1<<54)
The problem is that I don't have AND or SHIFT in the bignum library I'm using.
So the question is; How can I check if a bit is set in a number formatted like a string with arbitrary size?
Edit: Just to clarify: I'm using a small scripting language called Autoit3 with the following library: http://www.autoitscript.com/forum/topic/83529-bignum-udf which represents BigNums as strings.