Scroll to navigation

AVERAGE(1) User Contributed Perl Documentation AVERAGE(1)


numaverage - Find the average of a set of numbers.


numaverage [-dhiIlmMV] <FILE>

| numaverage [-dhiIlmMV] (Input on STDIN from pipeline.)

numaverage [-dhiIlmMV] (Input on STDIN. Use Ctrl-D to stop.)


By default numaverage will determine the average from all numbers on input. Other options allow you to find the mode and median.


    -i  Only return the integer portion of the final sum.
    -I  Only return the decimal portion of the final sum
    -m  Find the mode (most occurring) of the list of numbers,
        or when there's more than one mode, the first completed mode.
    -M  Find the median (middle number) of the list of numbers.
    -l  When finding the median and the count of numbers in the set is even,
        use the lower middle number instead of the upper middle number.
    -h  Help: You're looking at it.
    -V  Increase verbosity.
    -d  Debug mode.  For developers


numbound(1), numinterval(1), numnormalize(1), numgrep(1), numprocess(1), numsum(1), numrandom(1), numrange(1), numround(1)


numaverage is part of the num-utils package, which is copyrighted by Suso Banderas and released under the GPL license. Please read the COPYING and LICENSE files that came with the num-utils package

  Developers can read the GOALS file and contact me about providing
submitions or help for the project.


More info on numaverage can be found at:
2020-06-09 perl v5.30.3