Ad esempio

codice:
  float v = 3.141592f;
  
  char Line[100];
  sprintf(Line, "%f", v);
  MessageBox(NULL, Line, "PI GRECO", MB_ICONINFORMATION | MB_OK);