Difference between revisions of "Manuals/calci/TOPN"
Jump to navigation
Jump to search
Line 25: | Line 25: | ||
− | [[Z_API_Functions | List of Main Z Functions]] | + | *[[Z_API_Functions | List of Main Z Functions]] |
− | [[ Z3 | Z3 home ]] | + | *[[ Z3 | Z3 home ]] |
Revision as of 01:21, 13 March 2017
TOPN (Array,n)
- is the set of numbers.
- is the number.
Description
- This function shows the starting 'n' values of the given array.
- In , is the set of values and is the number of the value.
- shows the first 'n' values from the given set of values.
Examples
- TOPN([20,13,17,19,22,26,32,56,45,10,98,112,134,201],6) = 20 13 17 19 22 26
- TOPN([1.2,8.001,2.8,10,4.001,6,2],0) = 1.2
- TOPN([100,12,31,89,12,17,19],10)= 100 12 31 89 12 17 19
See Also
References