Documentation Center

  • Trial Software
  • Product Updates


Bank-formatted text


String = cur2str(Value, Digits)


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.


expand all

Return Bank-Formatted Text

This example shows how to return a given value in bank format.

String = cur2str(-8264, 2)
String =


See Also


Was this topic helpful?