2021-03-27

How to convert big decimal numbers to binary without using itoa?

I've been working on a program that converts UTF-16 to UTF-8, but I've been having trouble converting big numbers like 14846106 to binary. All binary converters that I found on the web break if the decimal number is 4 digits or more. I used itoa, worked flawlessly but problem arose when I tried to compile the program on Linux. So are there any other alternatives (besides snprintf which isnt even capable of converting from decimal to binary)?



from Recent Questions - Stack Overflow https://ift.tt/3lSWW8y
https://ift.tt/eA8V8J

No comments:

Post a Comment