I recently learned a bit about using the clnum package (see <
http://calcrpnpy.sourceforge.net/clnumManual.html>), and am trying to write a set of functions that I could import to do very precise division, raising any number to any power, etc., where the numbers can be strings in the form of "long floats", e.g., "1234.9872364091270983712639048710297".
I've succeed with a script, clnumDivision.py, (see it at < http://www.rcblue.com/Python/clnumDivision_for-web.py>) but it is not one function, but a script with 3 functions plus a main(). So my first question is how can I use this as a function that I could, for example, import into the interactive shell by a "from xxx import yyy", or an "import zzz"? Is the answer to put all 3 functions inside one big one?
Also, I'd appreciate knowing if there are easier ways to do some of the things I've done inside sciNotation() and numberRounding(), especially the former.
Thanks very much,
Dick Moores
_______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
