[Tutor] precision?

Shwinn Ricci armvrt at gmail.com
Tue Aug 9 17:29:01 CEST 2011


When comparing a given value with a database of values, but allowing for
freedom due to variation at say, the thousandth digit, how does one
generalize the precision to this degree? I don't want to truncate, so is
there a round() function that takes into account what decimal place the
value (database value) needs to be rounded to?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110809/59c818d9/attachment-0001.html>


More information about the Tutor mailing list