View unanswered posts | View active topics It is currently Mon Sep 01, 2014 2:38 pm






Reply to topic  [ 4 posts ] 
Displaying "%" 
Author Message
Expert

Joined: Thu Sep 29, 2011 11:09 pm
Posts: 184
Location: Michigan USA
Post Displaying "%"
How can I display the "%" symbol? I know the character is used as a formatter of strings, but I would really like to be able to display it. Being able to print it to the debug stream would be an added bonus. Is there a way to just print raw ASCII string data? In NXC, no strings get formatted unless you specifically use the formatting functions.

_________________
Matt


Thu Mar 22, 2012 12:05 am
Profile WWW
Moderator
Moderator
User avatar

Joined: Tue Sep 14, 2010 9:19 pm
Posts: 496
Post Re: Displaying "%"
Using "%%" in the debug stream works for me.

_________________
sudo rm -rf /


Thu Mar 22, 2012 12:26 am
Profile
Expert

Joined: Thu Sep 29, 2011 11:09 pm
Posts: 184
Location: Michigan USA
Post Re: Displaying "%"
Perfect, thank you very much!

_________________
Matt


Thu Mar 22, 2012 12:46 am
Profile WWW
Moderator
Moderator
User avatar

Joined: Tue Sep 14, 2010 9:19 pm
Posts: 496
Post Re: Displaying "%"
You're very welcome.

_________________
sudo rm -rf /


Thu Mar 22, 2012 8:59 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.