Setting the default precision in mxNumber

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Thomas Chassaing

    Setting the default precision in mxNumber

    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,pre cision)
    constructor all the time?

    Thanks
    T. Chassaing

  • Scott David Daniels

    #2
    Re: Setting the default precision in mxNumber

    Thomas Chassaing wrote:
    [color=blue]
    > ... mxNumber package .... do I have to use the Float(value,pre cision)
    > constructor all the time?[/color]

    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@A cm.Org

    Comment

    Working...