Main Content
cur2str
Bank-formatted text
Description
returns
the given value in bank format. BankText
= cur2str(Value
,Digits
)
The output format for BankText
is a numerical
format with dollar sign prefix, two decimal places, and negative numbers
in parentheses; for example, ($123.45) and $6789.01. The standard MATLAB® bank
format uses two decimal places, no dollar sign, and a minus sign for
negative numbers; for example, −123.45 and 6789.01.
Examples
Input Arguments
Output Arguments
Version History
Introduced before R2006a