A simple utility to create a monetary value string representation of a number.
Examples:
num2money(200) returns '$200'
num2money(200,'cents') returns '$200.00'
num2money(-200.34) returns '-$200.34'
num2money(2000.34) returns '$2,000.34'
num2money(20000.1023) returns '$20,000.10'
引用格式
Kenneth Eaton (2024). num2money (https://www.mathworks.com/matlabcentral/fileexchange/19431-num2money), MATLAB Central File Exchange. 检索来源 .
MATLAB 版本兼容性
创建方式
R14SP3
兼容任何版本
平台兼容性
Windows macOS Linux类别
在 Help Center 和 MATLAB Answers 中查找有关 Characters and Strings 的更多信息
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0.0 |