# Integer.parse(binary, base \\\\\\\\ 10)

**URL:** <https://forum.elixirforum.com/t/integer-parse-binary-base-10/1490>\
**Category:** Questions\
**Created:** [August 28, 2016, 6:49pm UTC](https://forum.elixirforum.com/t/integer-parse-binary-base-10/1490 "2016-08-28T18:49:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kostonstyle](https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/k/5f9b8f/32.png) [@kostonstyle](https://forum.elixirforum.com/u/kostonstyle)\
**Post date:** [August 28, 2016, 6:49pm UTC](https://forum.elixirforum.com/t/integer-parse-binary-base-10/1490/1 "2016-08-28T18:49:12Z")

</div>

Hi all  
Could someone please explain me the function Integer.parse the last argument `base` what does it means?  
This example

`Integer.parse("f4", 16)`

Why is the output:  
`{244, ""}`

not an error.

Thanks

---

<div class="post-metadata">

**Author:** ![andre1sk](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/andre1sk/32/1380_2.png) [@andre1sk](https://forum.elixirforum.com/u/andre1sk)\
**Post date:** [August 28, 2016, 6:59pm UTC](https://forum.elixirforum.com/t/integer-parse-binary-base-10/1490/2 "2016-08-28T18:59:41Z")

</div>

> [@kostonstyle](#):
>
> Could someone please explain me the function Integer.parse the last argument base what does it means?

> **[Radix](https://en.wikipedia.org/wiki/Radix)**
>
> In a positional numeral system, the radix (pl. radices) or base is the number of unique digits, including the digit zero, used to represent numbers. For example, in decimal systems (the most common systems in use today) the radix is ten.
> In any standard positional numeral system, a number is conventionally written as (x)y with x as the string of digits and y as its base. For base ten, the subscript is usually assumed and omitted (together with the enclosing parentheses), as it is the most commo...

> [@kostonstyle](#):
>
> Why is the output: {244, “”}
> 
> not an error.

Because you are parsing a hexadecimal number

> **[Hexadecimal](https://en.wikipedia.org/wiki/Hexadecimal)**
>
> Hexadecimal (hex for short) is a positional numeral system for representing a numeric value as base 16. For the most common convention, a digit is represented as "0" to "9" like for decimal and as a letter of the alphabet from "A" to "F" (either upper or lower case) for the digits with decimal value 10 to 15.
> As typical computer hardware is binary in nature and that hex is power of 2, the hex representation is often used in computing as a dense representation of binary information. A hex digit...

---

<div class="post-metadata">

**Author:** ![kostonstyle](https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/k/5f9b8f/32.png) [@kostonstyle](https://forum.elixirforum.com/u/kostonstyle)\
**Post date:** [August 28, 2016, 7:28pm UTC](https://forum.elixirforum.com/t/integer-parse-binary-base-10/1490/3 "2016-08-28T19:28:54Z")

</div>

Thanks so much.
