Skip to content

avg "max" is incorrect #2

@johnsonjh

Description

@johnsonjh

avg "max" is incorrect. Example:

$ printf '%s\n' 9999 8888 77 6 5 4 3 2 1 | ./avg -v             
Arithmetic Mean:    2109.444444
Median:             5.000000
Mode:               (5, 6, 4, 2, 3, 8888, 1, 77, 9999)
Geometric Mean:     25.720955
Harmonic Mean:      3.653784
Standard Deviation: 3929.019700
Min:                1
Max:                8888
Sum:                18985

Fixed in PR #3.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions