9/16/2022

python float variable Decimals format

 

refer to example code

..

print(f'{my_var:.1f}')
print(f'{res_dict}, total:{total_end - total_start:.3f} , ready:{end_ready - total_start:.3f}, inference:{end_inference - start_inference:.3f}')

..


Thank you.


www.marearts.com

No comments:

Post a Comment