Fast Binary Conversion

addle_brains

New Member
Hey, I'm looking for a quick way of converting decimal numbers to an array of binary integers. (Using C++) I have a current method using the bitwise shift operators, but when I'm converting a large file (> a few KB) it take ages! Any ideas how to make the process quicker?
 
Windows calculator has a converter. I use my TI-89 sometimes. Or if you simply browse google, there are hundreds of javascript calculators.
 
Thanks guys. I was more talking about a C++ algorithm (or any generic or pseudo-code) that I could use to speed up the process.
 
Back
Top