Words to Number
- the output vector's numeric class: double, single, uintX or intX.
- upper / lower / title / sentence case.
- the use of spaces between words.
- the use of a comma between magnitude groups.
- the use of a hyphen between tens and ones.
- the use of 'and' before the tens/ones (required in British and Commonwealth English).
- whitespace character/s.
- the numbering scale: short / long / Indian / Peletier / Rowlett / yllion.
- WORDS2NUM_TEST contains thousands of test cases.
- WORDS2NUM_DEMO compares the output of WORDS2NUM against real-world examples.
Citation pour cette source
Stephen23 (2024). Words to Number (https://www.mathworks.com/matlabcentral/fileexchange/52925-words-to-number), MATLAB Central File Exchange. Récupéré le .
Compatibilité avec les versions de MATLAB
Plateformes compatibles
Windows macOS LinuxCatégories
Tags
Remerciements
Inspiré par : num2english, num2english, Variable Precision Integer Arithmetic, Number to Scientific Prefix, Date Vector/Number to ISO 8601 Date String, Customizable Natural-Order Sort, ISO 8601 Date String to Serial Date Number, Numeric to Ordinal-String, Number to Words, Natural-Order Row Sort, Natural-Order Filename Sort, Convert number to words
A inspiré : Round to Electronic Component Values, Scientific Prefix to Number, Custom List / Arbitrary Sequence Sort, Number to Scientific Prefix, Customizable Natural-Order Sort, Numeric to Ordinal-String, Number to Words, Natural-Order Row Sort, Natural-Order Filename Sort
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 | |
---|---|---|---|
2.4.4 | * Documentation improvements. |
||
2.4.3 | * Add more testcases
|
||
2.4.2 | * option parsing improvements.
|
||
2.4.1 | * Add "IN" to summary. |
||
2.4.0 | * Faster option parsing.
|
||
2.3.1 | * Improve option parsing. |
||
2.3.0 | * Add 3rd output: significant digits.
|
||
2.2.2 | * Update description. |
||
2.2.1 | * Revise title and summary |
||
2.2.0 | * Accepts string or char vector input arguments.
|
||
2.1.0 | * Add error IDs.
|
||
2.0.0 | * Improve options handling.
|
||
1.4.0.0 | * Check for cell array optional inputs. |
||
1.3.0.0 | * Change HTML documentation filename.
|
||
1.2.0.0 | * Add options <prefix> and <suffix>.
|
||
1.1.0.0 | * replace non-ASCII character with ASCII one in RegularExpression. |
||
1.0.0.0 |