num2english

版本 1.0.0.0 (2.3 KB) 作者: Dave Kellow
Converts real numbers to plain english
939.0 次下载
更新时间 2007/1/8

无许可证

NUM2ENGLISH Convert numbers to plain english.
T = num2english(X) returns the plain english representation of the
number X. If X is a vector, it returns a character array with each
number in a different row.

T = num2english(X,'year') returns a string sounding more like a year,
for instance num2english(1984,'year') will return 'nineteen
eighty-four'. If the third digit is a zero it will return 'oh', so
num2english(1706,'year') returns 'seventeen oh-six'.

T = num2english(X,'th') returns first, second, third etc. instead of
one two three.

T = num2english(X,'example') returns a display of the various aspects
of the function.

引用格式

Dave Kellow (2024). num2english (https://www.mathworks.com/matlabcentral/fileexchange/13577-num2english), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2006a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Data Type Conversion 的更多信息
致谢

启发作品: Words to Number, Number to Words

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0