Loading ...
Sorry, an error occurred while loading the content.
 

Min/Max of 2 or more variables

Expand Messages
  • Robert Chin
    Wow really quiet these days... Is there a function in ploticus That will return the MIN or MAX Given a list of variavles ? Like I have 2 variables below -
    Message 1 of 2 , Oct 1, 2004
      Wow really quiet these days...

      Is there a function in ploticus
      That will return the MIN or MAX
      Given a list of variavles ?

      Like I have 2 variables below - @MIN_ANW & @MINY
      I need to get the minimun one.

      #proc processdata
      action: stats
      fields: 10
      #endproc
      #set MIN_ANW = $arithl(@MIN-1, "%.0f")
      #proc processdata
      action: stats
      fields: 5
      #endproc
      #set MINY = $autoround( @MIN, -2 )

      Or is the there a way to get the minimun/maxmun of 2 or more fields ?

      Thanks
      robert
    • Stephen C. Grubb
      Robert, no there s no elegant way to do this.. I ll add it to the TODO list to have processdata action:stats handle multiple fields. Steve ... Stephen C. Grubb
      Message 2 of 2 , Oct 4, 2004
        Robert, no there's no elegant way to do this.. I'll add it to the TODO
        list to have processdata action:stats handle multiple fields.

        Steve


        On Fri, 1 Oct 2004, Robert Chin wrote:

        >
        >
        > Wow really quiet these days...
        >
        > Is there a function in ploticus
        > That will return the MIN or MAX
        > Given a list of variavles ?
        >
        > Like I have 2 variables below - @MIN_ANW & @MINY
        > I need to get the minimun one.
        >
        > #proc processdata
        > action: stats
        > fields: 10
        > #endproc
        > #set MIN_ANW = $arithl(@MIN-1, "%.0f")
        > #proc processdata
        > action: stats
        > fields: 5
        > #endproc
        > #set MINY = $autoround( @MIN, -2 )
        >
        > Or is the there a way to get the minimun/maxmun of 2 or more fields ?
        >
        > Thanks
        > robert
        >
        >
        >
        >
        > Yahoo! Groups Links
        >
        >
        >
        >
        >
        >
        >
        >


        Stephen C. Grubb scg@...
        Scientific Software Engineer, The Jackson Laboratory
        600 Main Street Bar Harbor, Maine 04609 USA
      Your message has been successfully submitted and would be delivered to recipients shortly.