How to convert a int number to a string text?

Here is an example of how dtostrf() function works to get ASCII codes for the symbols of the floating number 17.35. After conversion, we will get (in HEX base) 31 for 1, 37 for 7, 2E for ., 33 for 3, 35 for 5 in the locations of a character type array named char ascArray[]. The codes are:

char ascArray[20] = "";
void setup() 
{
  Serial.begin(9600);
  float x = 17.35;
  dtostrf(x, 5, 2, ascArray);// double to string float 
  //x = float value to be converted
  //5 = number of ASCII codes in the output string
  //2 = number of digits after decimal point
  //ascArray = name of array that contains ASCII codes after conversion  
  Serial.println(ascArray);// validity check; shows 17.35.
  Serial.println(ascArray[0], HEX);//shows 31; validity check
}

void loop() 
{
 
}