Setting the default precision in mxNumber

Scott David Daniels Scott.Daniels at Acm.Org
Fri Jun 4 18:40:09 CEST 2004


Thomas Chassaing wrote:

> ... mxNumber package .... do I have to use the Float(value,precision)
 > constructor all the time?

Why not define your own constructor with a default that you control?
Then your code can happily use FLOAT(value) (for example), while
mxNumber's internals can get what they are used to and expect.

-- 
-Scott David Daniels
Scott.Daniels at Acm.Org



More information about the Python-list mailing list