scifer 10 Posted May 17, 2011 I want to print "%" character in a format command like: hint format["Percent: %1%", _percent]; So it would print "Percent: 10%"; How do I do that? Share this post Link to post Share on other sites
Muzzleflash 111 Posted May 17, 2011 Can't remember if this works: hint format["Percent: %1%2", _percent, "%"]; Share this post Link to post Share on other sites
scifer 10 Posted May 17, 2011 Can't remember if this works: hint format["Percent: %1%2", _percent, "%"]; Yes. It works. But it's less convenient to me :( There might be a special expression like "\n". Share this post Link to post Share on other sites
rundll.exe 12 Posted May 17, 2011 Didnt test, but I think you can escape the % by putting something like (maybe even %%% dont remember): hint format["Percent: %1%%", _percent]; Share this post Link to post Share on other sites
Mattar_Tharkari 10 Posted November 11, 2013 (edited) Use parseText and the HTML encoding HTML: % http://en.wikipedia.org/wiki/Percent_sign#Encodings _percent = 50; hint parseText format["<t> Percent: %1%</t>", _percent]; Output hint: Percent 50% Edited November 11, 2013 by Mattar_Tharkari Share this post Link to post Share on other sites