
[;1m  binary_to_integer(Binary, Base)[0m

[;;4mSince[0m:
  OTP R16B

  Returns an integer whose text representation in base [;;4mBase[0m is [;;4m[0m
  [;;4mBinary[0m.

  For example:

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

  [;;4mbinary_to_integer/2[0m accepts the same string formats as [;;4m[0m
  [;;4mlist_to_integer/2[0m.

  Failure: [;;4mbadarg[0m if [;;4mBinary[0m contains a bad representation of an
  integer.
