
  -spec binary_to_integer(Binary) -> integer() when Binary :: binary().

Since:
  OTP R16B

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

    > binary_to_integer(<<"123">>).
    123

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

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