Flow_14jfd9v Flow_14jfd9v Flow_1lsx968 # Check is done on a string # Convert if variable is integer or float if isinstance(decimal_count_check, int) or isinstance(decimal_count_check, float): decimal_count_str = str(decimal_count_check) else: decimal_count_str = decimal_count_check # Check if there are more than two decimal places d = decimal.Decimal(decimal_count_str) d_cnt = d.as_tuple().exponent # Get number of decimal places decimal_count_result = abs(d_cnt) #Delete unneeded variables del d del d_cnt del decimal Flow_1lsx968