>I want to use it for a currency exchange program. It's useful, then 
>the user
> wouldn't have to round it himself/herself, and mistakes could be 
> avoided.

For currency you need to use the decimal module. Normal floating point
numbers are far too inaccurate for reliable currency conversion.

This is discussed in the Bank account example in the OOP topic
in my tutorial (the inevitable plug! :-)

Alan G.

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to