OOF2: The Manual

Name

OOF.Settings.GUI_Digits — Set the precision for numbers in the GUI.

Synopsis

OOF.Settings.GUI_Digits(digits)

Details

  • Parent Menu: OOF.Settings
  • Callback: function _setdigits in module ooflib.common.IO.mainmenu
  • Parameters:

    digits
    Number of digits to show after the decimal point. Type: A non-negative integer.

Description

Set the number of digits to use point when displaying floating point numbers in the GUI. In order for changes to be take effect, you may need to close and reopen pages.

The default number of digits is 6. If you need 10 digits instead, put the line

    OOF.Settings.GUI_Digits(10)

in your .oof2rc file.

[Warning] Warning

This can have an effect on numerical operations, if you're not careful. Sometimes OOF2 fills in a value for you, and then uses that value for input. For example, if a Property parametrization dialog box has two parameters, P0 and P1 and you set P0 to 0.33333333333, then close the dialog and reopen it with digits set to 2, P0 will be displayed as 0.33. If you then click OK, perhaps after changing P1, P0 will be changed from 0.33333333333 to 0.33.