Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,8 @@
|
|||
function sumDigits n, base
|
||||
local numb
|
||||
if base is empty then put 10 into base
|
||||
repeat for each char d in n
|
||||
add baseConvert(d,base,10) to numb
|
||||
end repeat
|
||||
return numb
|
||||
end sumDigits
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
put sumdigits(1,10) & comma & \
|
||||
sumdigits(1234,10) & comma & \
|
||||
sumdigits(fe,16) & comma & \
|
||||
sumdigits(f0e,16)
|
||||
|
|
@ -0,0 +1 @@
|
|||
1,10,29,29
|
||||
Loading…
Add table
Add a link
Reference in a new issue