image thumbnail

somme in letter

version (3.1 KB) by Azzi Abdelmalek
wtite with letter an amount of money given in number


Updated 27 Jul 2012

View License

n :your number example : n=124.547
n must be < 1000 000 000 000;
Dinar is your money example Dinar='Dollar';
centime is a hundredth of your monnaie example centime='Cent'
langage must 1 (english) or 2 (french)
Example u=num2let(275.547,'Dollar','cent',1) returns
two hundred and seventy-five Dollars and fifty-four cents
u=num2let(275.547,'Dollar','cent',2) returns
deux cents soixante-quinze Dollars et cinquante-quatre cents
u=num2let(n); will set default parameters : Dollar, Cent and 1

Cite As

Azzi Abdelmalek (2022). somme in letter (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2011b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!