rem: sprintf(dest, "%.1f Hz",refresh_rate);
add: snprintf(string.LockBuffer(32), 32, "%.*g", refresh >= 100.0 ? 4 : 3, refresh); string.UnlockBuffer();  if (appendUnit) string << " Hz";
context: refresh_rate_to_string(float refresh_rate, char dest[]){	sprintf(dest, "%.1f Hz",refresh_rate);}