sf1 = '2.3723805'
addsf1 = 0
decimal = False
for num in sf1:
    if decimal == True:
        addsf1 = addsf1 + int(num)
if num == '.':
    decimal = True
print(addsf1)
Compare the number of significant digits in two numbers