Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » Formatting text with percent sign
Formatting text with percent sign [message #49887] Tue, 29 May 2018 13:35 Go to previous message
Tom1
Messages: 1212
Registered: March 2007
Senior Contributor
Hi,

Feel like a newbie again... How do I use Format to include a percent sign in text like I did with *printf functions:

*printf("Percentage: %.1f %%",15.5);

Results in: "Percentage: 15.5 %"

This does not work:

Format("Percentage: %.1f %%",15.5);

Results in: "Percentage: 15.5 "

Obviously I wish to format special strings with percentage signs in various places, so just having it follow a value is not sufficient.

Best regards,

Tom
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Building for Windows XP sp3
Next Topic: Can a ctrl remove itself?
Goto Forum:
  


Current Time: Thu Apr 18 08:03:21 CEST 2024

Total time taken to generate the page: 0.02096 seconds