This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.


Bank-formatted text


  • BankText = cur2str(Value,Digits)



BankText = cur2str(Value,Digits) returns the given value in bank format.


collapse all

Return bank formatted text for a negative numeric value.

BankText = cur2str(-826444.4456,3)
% Negative numbers are displayed in parentheses.
BankText =


Related Examples

Input Arguments

collapse all

Value to be formatted, specified as a numeric value.

Data Types: double

Number of significant digits, specified as an integer. A negative Digits rounds the value to the left of the decimal point.

Data Types: double

Output Arguments

collapse all

Bank-formatted text (BankText) is returned as a character vector with a leading dollar sign ($). Negative numbers are displayed in parentheses.

See Also


Introduced before R2006a

Was this topic helpful?