@EVAL's internal precision?

May 20, 2008
11,432
99
Syracuse, NY, USA
How many decimal places doe @EVAL use internally?

I mean, if I use @EVAL[w+x+y+z=2], does it add four precision-2 numbers or does it use higher precision and round the result to 2 places?
 
May 20, 2008
11,432
99
Syracuse, NY, USA
I should also have asked ... it is correct, then, that a precision spec, like "=5" affects only the output, and not the calculation itself?
 
May 20, 2008
11,432
99
Syracuse, NY, USA
Another, mostly unrelated question about @EVAL ... in a plugin, are these equivalent. Paraphrasing a little,

1. ExpandVariables(L"%@EVAL[expression]", 1)

2. ExpandVariables(expression, 1);
Evaluate(expression);
 
Similar threads
Thread starter Title Forum Replies Date
Joe Caverly Using @PSHELL from @EVAL Support 8
vefatica @EVAL's precision and significant digits Support 10
vefatica WAD @EVAL Support 7
thorntonpg @eval function, interesting results any explanation? Support 3
vefatica @eval[2**64-1] Support 14
D Syntax error when redirecting eval Support 5
T eval[] crashes with negative binary output Support 1
M erroneous @eval[]? Support 1
vefatica @EVAL, "AND" vs. "&" Support 6
dcantor Problem with @EVAL, TCC12 Support 7
E Problem with @eval[sin(0)] and similar Support 7
timo @eval question Support 3
fpefpe How to? free (internal) command Support 0
Joe Caverly Documentation Replace internal command with LIBRARY command Support 0
T Returning a value from internal Lua scripts to TCC Support 2
rps For loop internal %_for_files variable? Support 2
Joe Caverly Why does TCCRT return VIEW as an internal command? Support 6
F How to? Disable TCC's internal response to Alt-F4 Support 8
jfalch WAD internal "which" should check for FILEEXIST when using AppPaths entry Support 8
P Can't disable internal tar, at least in pipes Support 3
M Keywords for commands, functions, internal variables Support 3
D WAD Internal variable _cpu is undefined Support 2
E View (internal command) does nothing now Support 3
D Minor problem. Incorrect value internal var _dir_files Support 7
jbanaszczyk Alias for internal command Support 8
Joe Caverly Internal Lua and require Support 0
R Fixed Internal ZIP command fails to process multiple files Support 3
D Internal variable _tctabs within TCExit Support 9
mikea Questions re: Internal ZIP command Support 5
epement no internal help for 'v' in TCmd v14 Support 6
R Override TCC internal commands Support 2
H [4NT8] Internal Start-command and _? variable Support 5
G 4NT 9.02 _shell internal variable Support 50
M High-Precision arithmetic bug... Support 1

Similar threads