× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi all,

I have an interesting problem to solve and not being a mathematician I'm looking for some help.

I have got a number of records on a file which each have a percentage. I need to read these records and output the percentage, as a fraction, in two fields (a numerator and a denominator). The denominator needs to be the same for each record but cannot be greater than 999 (as the denominator field length is 3).

Has anyone else had to do anything like this? Any pointers would be appreciated.

This is going to be written in ILE COBOL.

For example,

9.95%
2.19%
2.18%
0.21%
0.90%
0.45%
0.19%
0.18%
17.50%
50.00%
4.38%
4.37%
7.50%

Best regards,

Mark


________________________________
"**Confidentiality**
The information contained in this e-mail is confidential, may be privileged and is intended solely for the use of the named addressee. Access to this e-mail by any other person is not authorised. If you are not the intended recipient, you should not disclose, copy, distribute, take any action or rely on it and you should please notify the sender by reply. Any opinions expressed are not necessarily those of the company.

We may monitor all incoming and outgoing emails in line with current legislation. We have taken steps to ensure that this email and attachments are free from any virus, but it remains your responsibility to ensure that viruses do not adversely affect you.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.