Differences From Artifact [e67a76bc83]:
- File 残局文料/lua_lib/算机_程语_月_基类_数.lua — part of check-in [ed6d06d03d] at 2024-02-12 07:13:49 on branch trunk — 好 (user: 顽雨沉风, size: 2006) [annotate] [blame] [check-ins using]
To Artifact [2fe66b2ac0]:
- File 残局文料/lua_lib/算机_程语_月_基类_数.lua — part of check-in [bd61a4ccbd] at 2024-02-12 14:31:27 on branch trunk — 好 (user: 顽雨沉风, size: 2123) [annotate] [blame] [check-ins using]
︙ | |||
55 56 57 58 59 60 61 62 63 64 65 66 67 68 | 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | + + + + + + + + | -- 绝对值 function d.绝对值(o1) if o1 > 0 then return o1 else return d.负数(o1) end end -- 正数与负数 function d.正数(o1) if o1 >= 0 then return o1 else return -o1 end end -- 递加 do local k1_0 --~ 数表 k1_0 = {} function d.递加(o1) |
︙ |