Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.



[Q] Percentsign with sprintf.
Posted:
Jul 9, 1996 2:15 PM


How do you include percentsign 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 percentsign is gone. I guess it treats the rest of the string as a comment. Can anyone help?
Peter



