How to find the greatest of two numbers without using the comparison operators?
- From: Aparajita <aparajita.mohanty@xxxxxxxxx>
- Date: Fri, 31 Aug 2007 06:41:03 -0000
Hi,
I want to find the greatest of two given numbers say 'A' and 'B.
The condition is that I should use the IF clause but not comparison
operators like '<', '>','=' etc.
Is there any other operator in COBOL by which we can compare two
numbers.
Thanks!
Aparajita
.
- Follow-Ups:
- Re: How to find the greatest of two numbers without using the comparison operators?
- From: SkippyPB
- Re: How to find the greatest of two numbers without using the comparison operators?
- From: Frank Swarbrick
- Re: How to find the greatest of two numbers without using the comparison operators?
- From: Howard Brazee
- Re: How to find the greatest of two numbers without using the comparison operators?
- From: Pete Dashwood
- Re: How to find the greatest of two numbers without using the comparison operators?
- From:
- Re: How to find the greatest of two numbers without using the comparison operators?
- Prev by Date: Re: SAME AS ('02 Standard) Clause - and circulatiy
- Next by Date: Re: How to find the greatest of two numbers without using the comparison operators?
- Previous by thread: OT: Baby Update (final)
- Next by thread: Re: How to find the greatest of two numbers without using the comparison operators?
- Index(es):