oh sorry i forgot to add i have to use string as binary this is hw for school. pow only works with double.
if you are such crazy about the string.
then you must subtract 48 from the each character of the string
as ASCII value of 1 is 49
when you subtract 49-48 = 1
then you can use it as normally
Reputation Points: 10
Solved Threads: 5
Junior Poster in Training
Offline 81 posts
since Dec 2007