Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: [Q] Percent-sign with sprintf.
Replies: 1   Last Post: Jul 9, 1996 3:20 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Peter John Acklam

Posts: 4
Registered: 12/7/04
[Q] Percent-sign with sprintf.
Posted: Jul 9, 1996 2:15 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

How do you include percent-sign with sprintf?
For instance, I want to get

The rate is 67 %.

But using sprintf('The rate is %0.0i %.',67) returns

The rate is 67

The percent-sign is gone. I guess it treats the rest
of the string as a comment. Can anyone help?

Peter





Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.