Hi,
I want to truncate every number to 2 digits after the decimal point. I
tried the following but it doesnt work.
[color=blue][color=green][color=darkred]
>>> a = 2
>>> b = 3
>>> round(a*1.0 / b,2)[/color][/color][/color]
0.6700000000000 0004
Inspite of specifying 2 in 2nd attribute of round, it outputs all the
digits after decimal.
I want to truncate every number to 2 digits after the decimal point. I
tried the following but it doesnt work.
[color=blue][color=green][color=darkred]
>>> a = 2
>>> b = 3
>>> round(a*1.0 / b,2)[/color][/color][/color]
0.6700000000000 0004
Inspite of specifying 2 in 2nd attribute of round, it outputs all the
digits after decimal.
Comment