You want to cut a ribbon into 0.82 meter (m) each in order to make ribbon loops. Make a loop with 53.73 meters (m) of ribbon and find how many millimeters (mm) of this ribbon are left.
53.73 0.82 [OP_MOD] 1000 [OP_MUL]
var_a = 53.73
var_b = 0.82
var_c = var_a % var_b
var_d = 1000
var_e = var_c * var_d
print(int(eval('{:.2f}'.format(round(var_e+1e-10,2)))))