def get_precision(input_number):
    """
    Return precision of input number.

    :param input_number: input number
    :type input_number : float
    :return: precision as int
    """
    input_string = str(input_number)
    if "." in input_string:
        splitted_input = input_string.split(".")
        return len(splitted_input[1])
    return 0