def cube(num):
    """
    Check if a number is cube
    
    :type num: number
    :param num: The number to check.
    
    >>> cube(8)
    True
    """

    x = num**(1 / 3)
    x = int(round(x))
    return bool(x**3 == num)