Tag: decimal-point

71 votes
30 answers
2.9K views
How to round to at most 2 decimal places, if necessary?

I'd like to round at most 2 decimal places, but only if necessary. Input: 10 1.7777777 9.1 Output: 1

avatar
Lashawna
0 1 0 9
asked 07 September, 2021