# coyote: RANGEOF

- coyote/Utilities
- [Source code]

NAME

      RANGEOF

PURPOSE

      This function returns the range (i.e., the minimum and maximum value)
      of its argument.

AUTHOR

      FANNING SOFTWARE CONSULTING
      David Fanning, Ph.D.
      1645 Sheely Drive
      Fort Collins, CO 80526 USA
      Phone: 970-221-0438
      E-mail: david@idlcoyote.com
      Coyote's Guide to IDL Programming: http://www.idlcoyote.com/

CATEGORY

      Utilities

CALLING SEQUENCE

      range = RangeOf(variable)

INPUTS

      variable:     Any numeric IDL variable, except complex.

KEYWORD PARAMETERS

      None.

OUTPUTS

      range:        A two-element vector containing the minimum and maximum value
                    of the variable.

EXAMPLE

      x = RandomU(3L, 10) * 100
      Print, RangeOf(x)
            3.78892      98.4703

MODIFICATION HISTORY

      Written by: David W. Fanning, 15 February 2009.