how would you...?

Martin Sand Christensen msc at es.aau.dk
Mon May 19 04:17:03 EDT 2008


>>>>> "inhahe" == inhahe  <inhahe at gmail.com> writes:
inhahe> Btw, use float() to convert a textual GPA to a number.

It would be much better to use Decimal() instead of float(). A GPA of
3.6000000000000001 probably doesn't make much sense; this problem
doesn't arise when using the Decimal type.

Martin



More information about the Python-list mailing list