If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

You need to convert the double to a string. The precise implementation details depend on yoru design. You can use stringstream objects to automate the conversion. Otherwise, use sprintf() to convert double to a char array buffer.

so either study sprintf as danny sais or create a function to convert it.

Depending on what compiler and libraries you use you can look into itoa or IntToStr.

If you wish to create your own function to convert it, I can give you a hint, to make a single digit a char you can do this: char DigitAsChar = (char)MySingleDigit+'0';
MySingleDigit beeing a int.

Then it will add the value of the char '0' to the value of the digit so if the digit = 5 it will be '5' (the char) instaid and the it cast's to a char so it will accept setting a char to the number representation of the character.