num2money
Versión 1.0.0.0 (1,66 KB) por
Kenneth Eaton
Converts a numeric value to a monetary value string
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'
Citar como
Kenneth Eaton (2024). num2money (https://www.mathworks.com/matlabcentral/fileexchange/19431-num2money), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Se creó con
R14SP3
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
Más información sobre Characters and Strings en Help Center y MATLAB Answers.
Etiquetas
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
Versión | Publicado | Notas de la versión | |
---|---|---|---|
1.0.0.0 |