Flow_14jfd9v
Flow_14jfd9v
Flow_1lsx968
# Check is done on a string
# Convert if variable is integer or float
if type(decimal_count_check) == int or type(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
sr_decimal_cnt = abs(d_cnt)
#Delete unneeded variables
del d
del d_cnt
del decimal
Flow_1lsx968