```python
def binary_to_decimal(binary):
    """
    Converts a binary number (represented as a string) to its decimal equivalent.

    Args:
        binary: A string representing a binary number.

    Returns:
        An integer which is the decimal equivalent of the binary number.
    """
    return int(binary, 2)

```