Averages/Mode: Difference between revisions
Content added Content deleted
Alextretyak (talk | contribs) m (→{{header|11l}}) |
|||
Line 3,045: | Line 3,045: | ||
<pre>(<6>,<4,1>)</pre> |
<pre>(<6>,<4,1>)</pre> |
||
=={{header|VBA}}== |
|||
Using an array of integers to show the built-in Mode_Mult function, which find and displays the modes in an array. The function ignores text and only works for numbers. |
|||
<lang vb>Public Sub main() |
|||
s = [{1,2,3,3,3,4,4,4,5,5,6}] |
|||
t = WorksheetFunction.Mode_Mult(s) |
|||
For Each x In t |
|||
Debug.Print x; |
|||
Next x |
|||
End Sub</lang>{{out}} |
|||
<pre> 3 4</pre> |
|||
=={{header|Vedit macro language}}== |
=={{header|Vedit macro language}}== |
||
Current edit buffer stores the collection. Each line is an item in the collection. |
Current edit buffer stores the collection. Each line is an item in the collection. |
||
Line 3,077: | Line 3,087: | ||
Buf_Quit(OK) |
Buf_Quit(OK) |
||
Statline_Message(@10)</lang> |
Statline_Message(@10)</lang> |
||
=={{header|Wren}}== |
=={{header|Wren}}== |