Python: Change precision of a number
In a program I've made I'm computing the percent error and since the numbers used are float, they are comming out too long. What is the best way of changing the precision so that I get 0.72 and not .723411340...etc.
I'm using the enthought edition of python 2.3.5
Can you help me out?
|