In the C programming language, this function accepts an arguement of typeint and converts it to its appropriate ASCII representation. It will interpret said integer in various numeric bases from base 2 to base 32. The format of the function is

char * itoa(int x, char * out, int base);

Where x is the variable to be converted, out is a pointer to string to store the converted value, and base is the numeric base or radix to use to interpret x.

This is a handy thing to do, because most output is required to be in ASCII, while all calculations are done in numbers. And since its not a particularly good use of compute hardware to calculate values that cannot be displayed, atoi is a means to that end.

So why write this up? Because it hasn't been done yet so I figured I otta do it. Besides, it's my first node, and I had to start somewhere.

Log in or registerto write something here or to contact authors.