def number_constant_value(number_constant):
    """
    Get the value that a number constant represents.

    Args:
        number_constant (str): The constant to extract the value from.
    Returns:
        int: The value of the constant.
    """

    return int(number_constant[1:], 0)