| Financial Toolbox | Search  Help Desk |
| cur2str | Examples See Also |
Syntax
t = cur2str(p, d) t = cur2str(p)
Description
t = cur2str(p, d)
returns the given value in bank format. p is the given value to be formatted and d is the number of significant digits. By default, d = 2. A negative d rounds the value to the left of the decimal point. t is returned as a string with a leading dollar sign ($). Negative numbers are displayed in parentheses.
Example
t = cur2str(-8264, 2)returns
t = ($8264.00)
See Also
cur2frac, frac2cur