Base decode: Difference between revisions
Content added Content deleted
("Add all appropriate categories to each verb") |
("Better category ordering, add redirects to categories, fix pseudo-adverb categories") |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{{primitive|x/y}} |
{{primitive|x/y}} |
||
''' |
'''base decode''' or just '''decode''' takes an integer <code>y</code> and decodes it into a digit array using the bases in <code>x</code>. It performs the inverse of [[base encode]]. |
||
If <code>x</code> is an atom, decodes the number fully, using <code>x</code> as many times as needed. |
If <code>x</code> is an atom, decodes the number fully, using <code>x</code> as many times as needed. |
||
Line 14: | Line 14: | ||
</pre> |
</pre> |
||
[[Category: |
[[Category:Verbs]] |
||
[[Category:Operator verbs]] |
|||
[[Category:Primitives]] |
[[Category:Primitives]] |
Latest revision as of 06:14, 9 July 2022
Base decode
x/y
base decode or just decode takes an integer y
and decodes it into a digit array using the bases in x
. It performs the inverse of base encode.
If x
is an atom, decodes the number fully, using x
as many times as needed.
2 2\5 0 1 2\5 1 0 1 24 60 60\1000 0 16 40