num2money
Version 1.0.0.0 (1,66 ko) par
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'
Citation pour cette source
Kenneth Eaton (2025). num2money (https://fr.mathworks.com/matlabcentral/fileexchange/19431-num2money), MATLAB Central File Exchange. Extrait(e) le .
Compatibilité avec les versions de MATLAB
Créé avec
R14SP3
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS LinuxCatégories
En savoir plus sur Characters and Strings dans Help Center et MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
| Version | Publié le | Notes de version | |
|---|---|---|---|
| 1.0.0.0 |
