Data Conversion Routines question. *solved*
char *_itoa(
int value,
char *string,
int radix
);
Can someone explain int radix parameter? MSDN doesn`t tell to much.
Thanks in advance.
IIRC, the radix is the base -- as in, base 2 (binary), base 10 (decimal), base 16 (hexadecimal). Chances are you want 10, decimal.
radix is what base to translate the string as. For example it could be octal, where the legitmate digits are from 0 to 7, or it could decimal, where the legitimate digits are 0 to 9, or it could be hexidecimal where the legitmate digits are from 0 to F. In those cases you would use a radix of 8, 10 and 16 respectively.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement