Avg: Difference between revisions

From The K Language Wiki
Content added Content deleted
(Created page with "{{primitive|avg x|in=K7, K9}} '''Avg''' computes the average of a numeric or character array in K. <pre> avg 1 2 3 2. avg 67 78 1 48.66667 avg "abc" 98. </pre> <!--{{works...")
 
("Better category ordering, add redirects to categories, fix pseudo-adverb categories")
 
(3 intermediate revisions 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 12: Line 13:
<!--{{works in|K7, K9}}
<!--{{works in|K7, K9}}
-->
-->

[[Category:Verbs]]
[[Category:Named verbs]]
[[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.