Products & Services Solutions Academia Support User Community Company

Learn more about Financial Toolbox   

cur2str - Bank-formatted text

Syntax

String = cur2str(Value, Digits)

Description

String = cur2str(Value, Digits) returns the given value in bank format. By default, Digits = 2. A negative Digits rounds the value to the left of the decimal point. String is returned as a string with a leading dollar sign ($). Negative numbers are displayed in parentheses.

Examples

String = cur2str(-8264, 2)

returns String = ($8264.00)

See Also

cur2frac, frac2cur

  


Free Interactive Computational Finance CD

View demos and recorded presentations led by industry experts.

Now On Demand
Network with industry peers and learn the latest applications of the leading software product for computational finance.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS