SyntaxFix
Write A Post
Hire A Developer
Questions
Being a computer nerd and not a maths nerd I'd do:
char buffer[64]; int len = sprintf(buffer, "%d", theNum);