SyntaxFix
Write A Post
Hire A Developer
Questions
You can also use numpy assuming if you are using python3.x here is an example
import numpy as np x = 2.3 print(np.rint(x)) >>> 2.0