Convert float to string

Hello i make a module that read the values from gps and send it in a string messages through GSM module

so i ask about how to convert this value to string to send it as a message

Serial.print("Latitude : ");
  Serial.print(" :: Longitude : ");

the result of this code is Latitude : 31,1659389 :: Longitude : 30,1239847

can any one help me to save it into string to send it in sms messages?


Yes, like KeithRB said dtostrf() can help doing that conversion.

This issue was discussed in this thread:


You can also check this article out: