Data Conversion Routines question. *solved*

Started by
2 comments, last by Calin 18 years, 8 months ago
char *_itoa( int value, char *string, int radix ); Can someone explain int radix parameter? MSDN doesn`t tell to much. Thanks in advance.

My project`s facebook page is “DreamLand Page”

Advertisement
IIRC, the radix is the base -- as in, base 2 (binary), base 10 (decimal), base 16 (hexadecimal). Chances are you want 10, decimal.
{[JohnE, Chief Architect and Senior Programmer, Twilight Dragon Media{[+++{GCC/MinGW}+++{Code::Blocks IDE}+++{wxWidgets Cross-Platform Native UI Framework}+++
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.
Thank you guys!

My project`s facebook page is “DreamLand Page”

This topic is closed to new replies.

Advertisement