How to use a coma as the decimal separator? I have a LCD that displays a float variable. I would like to show a comma instead of a dot as the decimal separator.

float temp = 23.50;
lcd.setCursor(0, 0);
lcd.print(temp);


I want to show 23,50 instead of 23.50.

Is there any function to convert or format it?
Print the integer part, print a comma, then print the value minus the integer part.

float value = 123.45;
int ival = (int)value;
int frac = (value - ival) * 100;

Serial.print(ival);
Serial.print(",");
if (frac &lt; 10) Serial.print("0");
Serial.println(frac);