Anonymous user
Non-decimal radices/Convert: Difference between revisions
m
→{{header|AutoHotkey}}: Minor indentation and casing edit
(+AutoHotkey) |
m (→{{header|AutoHotkey}}: Minor indentation and casing edit) |
||
Line 158:
=={{header|AutoHotkey}}==
<lang AutoHotkey>
number2base(number, base)
{
{
result := mod(number, base) . result
Line 169:
}
result := digit . result
}
parse(number, base)
{
result = 0
pos :=
{
result := ((base ** pos) * A_LoopField) + result
base -= 1
}
}
</lang>
|