Avg: Difference between revisions

From The K Language Wiki
Content added Content deleted
("Add all appropriate categories to each verb")
("Better category ordering, add redirects to categories, fix pseudo-adverb categories")
 
(One intermediate revision by the same user not shown)
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>
Line 13: Line 14:
-->
-->


[[Category:Named verbs]]
[[Category:Verbs]]
[[Category:Verbs]]
[[Category:Named verbs]]
[[Category:Primitives]]
[[Category:Primitives]]

Latest revision as of 06:14, 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.