模块:Common:修订历史

来自决策链云智库

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

2023年12月13日 (星期三)

  • 当前之前 16:192023年12月13日 (三) 16:19Zeroclanzhang 讨论 贡献 3,149字节 +3,149 创建页面,内容为“local common = {} --- Convert an input to number --- @param num string|integer Input --- @param onFail string|integer Output if conversion fails --- @param base integer Base for tonumber, defaults to 10 --- @return number function common.toNumber( num, onFail, base ) base = base or 10 if num == nil then return onFail end local numCopy = num if type( num ) == 'string' then numCopy = num:gsub( ',', '.' ) end numCopy = ton…”