%@average

#3
I'm not sure what to expect. I get these, the first with "auto" and the second with "Comma".
Code:
v:\> echo %@average[1,0 3,0]
20.0

v:\> echo %@average[1,0 3,0]
20,0
And the first of these (below) could use some tidying up. It doesn't seem to be coming from @EVAL.
Code:
v:\> echo %@average[1.1 3.1 0.1 2.1]
1.6000000000000001

v:\> echo %@eval[(1.1 + 3.1 + 0.1 + 2.1) / 4]
1.6
 

rconn

Administrator
Staff member
May 14, 2008
10,533
94
#4
I'm not sure what to expect. I get these, the first with "auto" and the second with "Comma".
Code:
v:\> echo %@average[1,0 3,0]
20.0

v:\> echo %@average[1,0 3,0]
20,0
WAD; it's interpreting the ',' as a thousands separator (and ignoring it).

And the first of these (below) could use some tidying up. It doesn't seem to be coming from @EVAL.
Code:
v:\> echo %@average[1.1 3.1 0.1 2.1]
1.6000000000000001

v:\> echo %@eval[(1.1 + 3.1 + 0.1 + 2.1) / 4]
1.6
@AVERAGE doesn't use (or have any relationship with) @EVAL.
 
Last edited: