Non-decimal radices/Input: Difference between revisions
Content added Content deleted
m (Added Erlang) |
|||
Line 257: | Line 257: | ||
? __makeInt("200", 10) |
? __makeInt("200", 10) |
||
# value: 200</lang> |
# value: 200</lang> |
||
=={{header|Erlang}}== |
|||
My interpretation of the task description is that I can state that the base (here: 17) can be 2..36, without having to show one example of each. |
|||
{{out}} |
|||
<pre> |
|||
<12> erlang:list_to_integer("ffff", 17). |
|||
78300 |
|||
/pre> |
|||
=={{header|Factor}}== |
=={{header|Factor}}== |
||
Bases from 2 to 16 are supported through the generic base> word (see online docs [http://docs.factorcode.org/content/word-base__gt__,math.parser.html]) |
Bases from 2 to 16 are supported through the generic base> word (see online docs [http://docs.factorcode.org/content/word-base__gt__,math.parser.html]) |