Skip to content
人工智能 edited this page Jun 27, 2015 · 3 revisions

P.num2cn(n, no0)

功能:

自然数转中文数字


参数:

{n}

自然数,例如:388006,参数类型为Number,必选项

{no0}

逻辑值,转换独立数字 0时,是否返回空字符串。默认为假,返回“零”,参数类型为Boolean,可选项


示例

代码:P.num2cn('308600')

结果:三十万八千六

Clone this wiki locally