<-- Previous || Up || Next -->

Median Of Three Function
Math Statistics Class

Public Function MedianOfThree( _
      ByVal vA As Variant _
    , ByVal vB As Variant _
    , ByVal vC As Variant _
    ) As Variant

Median (or middle) of the three numeric arguments.

Examples:
    MedianOfThree(12, 34, 56) = 34
    MedianOfThree(34, 12, 56) = 34
    MedianOfThree(56, 12, 34) = 34
See also:
    MedianOfThreeVerify Subroutine
    Median Function
vA, vB, vC: Numeric arguments those middle member is to be returned.
Return value: Function returns the median of the three numeric arguments. The median is the element in the middle of the sorted list of elements.

Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.