Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

%@average

[D:\]echo %@average[1 3 6 8 10 13 15]
1368101315,0

[D:\]echo %@average[1 3]
13,0

[D:\]echo %@average[1.0 3.0]
TCC: (Sys) Parametr není správný.
"%@average[1.0 3.0]"

[D:\]echo %@average[1,0 3,0]
1,0
 
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
 
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:
Back
Top