
  -spec binary_to_integer(Binary, Base) -> integer()
                             when Binary :: binary(), Base :: 2..36.

Since:
  OTP R16B

  Returns an integer whose text representation in base Base is 
  Binary, for example:

    > binary_to_integer(<<"3FF">>, 16).
    1023

  binary_to_integer/2 accepts the same string formats as 
  list_to_integer/2.

  Failure: badarg if Binary contains a bad representation of an
  integer.
