comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: min/max routines
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: min/max routines [message #7406 is a reply to message #7403] Wed, 13 November 1996 00:00 Go to previous message
Tim Patterson is currently offline  Tim Patterson
Messages: 65
Registered: October 1995
Member
Dot Delapp wrote:
>
> Is there a routine similar to the fortran and c min max functions
> that returns the max or min of two numbers?
>
> Thanks


For two or more separate numbers, you can use < and > for min/max

Examples:

> print, 1< 2

1

> print, 22 < 1.5 < 3 < 6 < 7

1.5

> temp = 1 > 3 > 2
> print, temp

3


There's more under "Miminum Operator" and "Maximum Operator"
in the IDL manuals.

Hope this helps

Tim
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Inverse of POLYFILLV
Next Topic: Inverse of POLYFILLV

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 07:38:37 PDT 2025

Total time taken to generate the page: 0.72219 seconds