Setting the default precision in mxNumber

  • Thread starter Thomas Chassaing
  • Start date
T

Thomas Chassaing

Hi,

I just installed the mxNumber package and looking trough the
documentation I found no means to set the default precision for Float
numbers (I think it is set to 64bits). Does anyone know how the default
precision can be changed, or do I have to use the Float(value,precision)
constructor all the time?

Thanks
T. Chassaing
 
S

Scott David Daniels

Thomas said:
... 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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,201
Messages
2,571,048
Members
47,651
Latest member
VeraPiw932

Latest Threads

Top