Try changing line ~397 from len_in = round(safe_float(len_mm) // 25.4, 1) to
The "//" division is returning an int. The "/" division returns a float ("true division")
Note: this is only true under Python3.
Edit:
another way to fix this is to use multiplication:
1 / 25.4 = 0.03937 This will work under both Python 2 & 3.
Dan
Code:
len_in = round(safe_float(len_mm) / 25.4, 1)
Note: this is only true under Python3.
Edit:
another way to fix this is to use multiplication:
Code:
len_in = round(safe_float(len_mm) * 0.03937, 1)
Dan
<p><br></p>