09-02-2010 03:41 PM
I am communicating serially with a chilled mirror device and the input string syntax contains this text: "%RH=<input value>"
I have not been able to figure out how to tell the function that the percent here is not a format specifier. Is this possible, or should I just try to use a different function?
Thanks.
Solved! Go to Solution.
09-02-2010 03:49 PM
Use '\%RH=%f' (or similar) as the format string. The backslash lets you use the percent character.
09-02-2010 03:50 PM - edited 09-02-2010 03:52 PM
Use %% in your format string so that it knows to use the percent literally. So %%RH=%f
EDIT: Darin got one in there ahead of me. It looks like either \% and %% both work.