rounding with 2g gives strange results

Solutions on MaxInterview for rounding with 2g gives strange results by the best coders in the world

showing results for - "rounding with 2g gives strange results"
Alessio
06 Mar 2020
1>>> "%g" % round(20.016, 2)
2'20.02'
3>>> "%g" % round(20, 2)
4'20'
5
similar questions
queries leading to this page
rounding with 2g gives strange results