30 pts.
 Convert number to roman numerals in RPG
Hi,

Can any know how to convert numbers to roman numerals in RPG or RPGLE?



Software/Hardware used:
ASKED: October 24, 2009  6:43 AM
UPDATED: October 29, 2009  10:59 PM

Answer Wiki:
Thank you for visiting ITKE. We are happy to help you with solving specific IT questions, but need as much information as possible to do so. Let us know about the problem you are trying to solve, how you are approaching it and what work you’ve done so far, and we can help guide you in the right direction.
Last Wiki Answer Submitted:  May 14, 2013  12:57 am  by  Chris Leonard   3,185 pts.
All Answer Wiki Contributors:  Chris Leonard   3,185 pts. , philpl1jb   44,630 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

I wrote a Roman numeral calculator in Fortran almost 40 years ago for an unusual college assignment. It handled both true representation and the later “subtractive format” representation — e.g., XVIIII and XIV. Not trivial in old Fortran. I suspect that the basic code would look recognizably similar in RPG IV today.

What exactly brings this question up? It isn’t much different in many principles from a “numeral-to-word” converter that would replace [123] with “one hundred twenty-three”.

Tom

 110,175 pts.

 

I had that same college assignment. A true business application could likely work with a mere conversion table. Yes I prefer to calc nearly everything, but this might be an exception. Table is simple & effective for a short list of values.

Mike L.

 1,565 pts.

 

When we did it we didn’t need no stinkin table, we didn’t have any chairs either, had to do it on the floor and it was dirt and Roman numerals had just been invented.
Phil

 44,630 pts.

 

A dirt floor, Phil?

Luxury….

 2,195 pts.

 

.. when I was young they didn’t call it Roman Numerials it was Julius’s Numerial .. only one .. I.
Phil

 44,630 pts.