So I have the following code
for x in range(10):
print(f'Machine Busy Val : {read_log ("Machine_busy_value")}')
read_log is the function and it is getting the machine_busy_value. it is currently returning a floating number but I would like it to return the value in 2 decimal places. How can I go about that? Any type of suggestion would be appreciated. I am using python 2.7 if that helps