Hello Jim,
it seems it doesn't matter: I get the same output for both math.eval() and math.evalStr().
BTW, when dealing with EvalSettings, what I've also noticed is the following:
a)
Lua Reference Manual:
"For user convenience, setEvalSettings also accepts the ordinal number of the setting
to override and the ordinal number of the value to use instead. The ordinal numbers to
use correspond to the order of the settings and their values found at File > Settings >
Document Settings."
When I go to File>Settings>Document Setting...>Calculation Mode, I see the options ordered as
Auto/Exact/Approximate (I understand 'Exact' setting is mapped to 2).
But when I math.setEvalSettings({{'Calculation Mode',2}}), I get the approximate output,
and when I math.setEvalSettings({{'Calculation Mode',3}}), I get the exact output
It reminds me to the false expectations that (not indexed) table entries are internally sorted
the same way the items were entered, and that table[1] will return the first item entered.
b) when you go to File>Settings>Document Setting...>Display Digits,
name of options are 'Fix1','Fix2',... but the proper option names are 'Fixed1','Fixed2',..
Is somewhere given the full list of the options strings, or we have to relly on the dialog settings names?
Regards,
Goran