模板:Number to word
此模板使用Lua语言: |
概要
使用方法
{{數字轉英文|数|ord=on/off}}
参数
参数 | 内容 | 默认值 | 说明 |
---|---|---|---|
1 | 要转换的数字 | 无 | 可以是任意实数。 |
ord | 序数 | 无 | 若输入on则输出序数;输入其他数、或未指定则输出基数。 |
示例
- {{數字轉英文|-9862234}}
- 显示为:negative nine million eight hundred sixty-two thousand two hundred and thirty-four
- {{數字轉英文|-2249982443886|ord=on}}
- 显示为:negative two trillion two hundred forty-nine billion nine hundred eighty-two million four hundred forty-three thousand eight hundred and eighty-sixth
- {{數字轉英文|34659281623021346459162342132643124326}}
- 显示为:thirty-four undecillion six hundred fifty-nine decillion two hundred eighty-one nonillion six hundred twenty-three octillion twenty-one septillion three hundred forty-six sextillion four hundred fifty-nine quintillion one hundred sixty-two quadrillion three hundred forty-two trillion one hundred thirty-two billion six hundred forty-three million one hundred twenty-four thousand three hundred and twenty-six
- {{數字轉英文|-7}}
- 显示为:negative seven
- {{數字轉英文|-15|ord=on}}
- 显示为:negative fifteenth
- {{數字轉英文|3.14159265358979}}
- 显示为:three point one four one five nine two six five three five eight nine seven nine