Re: How to find the greatest of two numbers without using thecomparison operators?




"Frank Swarbrick" <Frank.Swarbrick@xxxxxxxxxxxxxx> wrote in message
news:46D7E17F.6F0F.0085.0@xxxxxxxxxxxxxxxxx
[snip]
Not sure why you need this, but perhaps FUNCTION MAX could give you what
you
want?

COMPUTE MAX = FUNCTION MAX(A B)

Another intereting approach might be:
-----
evaluate
function ord-max(A B) - function ord-min(A B)
when 1
display "A is less than B"
when 0
display "A is equal to B"
when -1
display "A is greater than B"
end-evaluate
-----

A and B may be either numeric or alphanumeric, as long as
they are the same.



.



Relevant Pages

  • Re: Name change
    ... (application icons displayed on the dock often display information). ... slows down Windoze) - four CPU cores in two chips. ... It's displayed by the Temperature Monitor app, ...
    (uk.people.support.depression)
  • Re: openSUSE 11.1, nvidia 9600 KO - resolution problems....again!
    ... to the "monitor" section of the xorg.conf file? ... This option forces the X driver to use the EDID specified in a file ... list of display names and filename pairs. ...
    (alt.os.linux.suse)
  • Re: Wowee!!!!
    ... There are various Settings, which all have an effect on ... If you Chhose the Option to "Display all Messages ... But you can always (as shaz mentioned) change the Size in the Font ...
    (uk.people.silversurfers)
  • Re: webservice performance data missing
    ... [SNIP] ... Display for counter 4574 not found ... WMI ADAP was unable to process the .NET CLR Networking performance ... Now the script works again as well ...
    (microsoft.public.win32.programmer.wmi)
  • Re: How feasible would this programme be to write?
    ... > The programme's function is to run through and display every possible letter ... > combination in the English alphabet at 1 second intervals. ... > for as long as that programme is allowed to run on it. ...
    (comp.programming)