This question shows research effort; it is useful and clear
1
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
I wonder if there is any easy way to round a double number to a total digits in python?
For example, I want 3 digits in total, so
I want to 1.523 to be 1.52 , and 23.45 to be 23.5, and 108,9 to be 109