%% %CopyrightBegin%
%%
%% SPDX-License-Identifier: Apache-2.0
%%
%% Copyright Ericsson AB 2021-2025. All Rights Reserved.
%%
%% %CopyrightEnd%

[;1m  binary_to_integer(Binary)[0m

[;;4mSince[0m:
  OTP R16B

  Returns an integer whose text representation is [;;4mBinary[0m.

  For example:

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

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

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