sprintf(Percentage, "Completed - %5.2f %",(Value/Max)*100);
How do I get the second % sign to go into my string?
Printable View
sprintf(Percentage, "Completed - %5.2f %",(Value/Max)*100);
How do I get the second % sign to go into my string?
Not sure, but I guess you should use the escape character (\)
So that would be
Code:sprintf(Percentage, "Completed - %5.2f \%",(Value/Max)*100);
% is _vsnprintf specific so try %%. (it's not escaped by the compiler)