Skip to content

[BUG] Update BinaryToDecimal class to handle large binary numbers #4134

@sukrutimallesh

Description

@sukrutimallesh

Description

The BinaryToDecimal class currently uses the int type to represent binary numbers, which limits the maximum value that can be converted to 2,147,483,647. However, it is sometimes necessary to convert larger binary numbers.

Steps to reproduce

No response

Excepted behavior

The updated BinaryToDecimal class should be able to handle large binary numbers without throwing an exception, and should correctly convert these numbers to decimal. The new test case should pass without errors.

Screenshots

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions