def effective_decimals(num):
    """ find the first effective decimal

    :param float num: number
    :return int: number of the first effective decimals
    """
    dec = 0
    while 0. < num < 1.:
        dec += 1
        num *= 10
    return dec