The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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?


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

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.