Sorry to disturb that dream...
>>> roundf(1.516,2) 1.52 >>> roundf(1.515,2) 1.51 >>> roundf(1.5151,2) 1.52 >>> roundf(1.514,2) 1.51
Still not right. Same with round() though.
Sorry to disturb that dream...
>>> roundf(1.516,2)
1.52
>>> roundf(1.515,2)
1.51
>>> roundf(1.5151,2)
1.52
>>> roundf(1.514,2)
1.51
Still not right. Same with round() though.