Difference between revisions of "Manuals/calci/TOPN"

From ZCubes Wiki
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 02: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

  1. TOPN([20,13,17,19,22,26,32,56,45,10,98,112,134,201],6) = 20 13 17 19 22 26
  2. TOPN([1.2,8.001,2.8,10,4.001,6,2],0) = 1.2
  3. TOPN([100,12,31,89,12,17,19],10)= 100 12 31 89 12 17 19

See Also

References

Top