模块:BaseConvert/doc:修订历史

来自决策链云智库

差异选择:选中要对比的版本的单选按钮,按Enter键或下方的按钮。
说明:(当前)=与最后版本之间的差异,(之前)=与上一版本之间的差异,=小编辑。

2024年1月17日 (星期三)

  • 当前之前 01:222024年1月17日 (三) 01:22Zeroclanzhang 讨论 贡献 2,531字节 +2,531 创建页面,内容为“{{High-use}} Converts numbers to a specified base between 2 and 36, for use in templates such as {{Tl|Binary}}, {{Tl|Octal}}, {{Tl|Hexadecimal}}, etc. ==Usage== <syntaxhighlight lang="lua"> local BaseConvert = require('Module:BaseConvert') BaseConvert.convert({n = 14600926, base = 16}) -- returns 'DECADE' </syntaxhighlight> Arguments: *'''n''' - (required) the number to be converted, as a string. It may be a number instead, if the input base is 10. *'''base'…”