Say, float x = 3.142;
We want --
//char stringOne [6] = {0x33, 0x2E, 0x31, 0x34, 0x32, 0x00};
//The above array contains ASCII codes for the symbols of x; null-character is automatically added
String stringOne = String(x, 3); // 3-digit accuracy after decimal point ; array char stringOne[6]; is automatically created.
Now, we can check --
Serial.print(stringOne); //shows: 3.142
Serial.write(stringOne[0]); //shows: 3
Serial.println();
Serial.print(stringOne[0], HEX); // shows: 0x33 --> ASCII code of 3
and so on....