Avg: Difference between revisions

From The K Language Wiki
Content added Content deleted
("Add all appropriate categories to each verb")
("More lowercasing")
Line 1: Line 1:
{{primitive|avg x|in=K7, K9}}
{{primitive|avg x|in=K7, K9}}

'''Avg''' computes the average of a numeric or character array in K.
'''avg''' computes the average of a numeric or character array in K.


<pre>
<pre>

Revision as of 04:42, 9 July 2022

Avg
avg x
Supported in K7, K9

avg computes the average of a numeric or character array in K.

 avg 1 2 3
2.
 avg 67 78 1
48.66667
 avg "abc"
98.