I have a problem that I am having trouble solving. I have a string of undefined length containing '0' or '1'. I need to convert this string to decimal... but I CANNOT store it in anything but another string. My issue is how to do this?! I have been thinking of maybe using base 1024, convert it to base 1000 + base 24 and store the 24 in an unsigned long long int... but even that might not work. Any ideas?
Labdabeta 182 Posting Pro in Training Featured Poster
Arbus 25 Practically a Master Poster
Moschops 683 Practically a Master Poster Featured Poster
Labdabeta 182 Posting Pro in Training Featured Poster
mike_2000_17 2,669 21st Century Viking Team Colleague Featured Poster
mike_2000_17 2,669 21st Century Viking Team Colleague Featured Poster
nezachem 616 Practically a Posting Shark
mike_2000_17 commented: nice and simple, I like it! +11
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.