def round_scalar(scalar):
    """Rounds a scalar to the nearest integer

    Args:
        scalar (float): scalar to round

    Returns:
        int: input rounded to the nearest int
    """
    return int(round(scalar))