I'm not sure what you mean. Do you mean that you want to extract the decimal digits from a number that is the value of a variable in C or C++? Or what?
printf() in C or C++ (or cout << in C++ ) does the job. However, if this is a programming exercise, maybe you could give us a clue as to what you really want to do.
Dave
|