objective c - Displaying percentage using NSString -


How do we display percentage characters in objective-c?

I am using this:

  [NSString localizedStringWithFormat: @ "% .2f%", percentq]]  

but For some reason, this% does not recognize. I thought I could survive using this ... but I was very wrong.

A similar question was tagged C asked today:. The answer here is the same ... use a double %%.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

jquery - SimpleModal Confirm fails to submit form -