Home » Community » Newbie corner » Formatting text with percent sign
Re: Formatting text with percent sign [message #49898 is a reply to message #49897] |
Fri, 01 June 2018 08:43  |
Tom1
Messages: 1305 Registered: March 2007
|
Ultimate Contributor |
|
|
Hi,
Yes I can confirm that the standard %% works correctly with Format(). Just as I suspected after being waked up by Oblivion, my use of printf() to output the result from Format() to console caused the issue in the first place:
Cout() << Format("%.1f %%\r\n",12.3); // yes this works: 12.3 %
printf(~Format("%.1f %%%%\r\n",12.3)); // and this works: 12.3 %
The documentation this morning looks correct.
Thanks to both of you.
Best regards,
Tom
|
|
|
Goto Forum:
Current Time: Sun Aug 24 19:59:47 CEST 2025
Total time taken to generate the page: 0.05400 seconds
|