-
February 26th, 2014, 02:11 AM
#1
Adding Roman Numerical
Hi,
I'm new to java programming,
Please help in Writing an program to add any 2 given Roman numerals together and return the results.
[I don't want to convert Roman numbers to decimal numbers & then add together,then convert in to Roman numerials ]
Is there any direct way to add roman numerials.
Much appreciated in advance to slove this problem.
For example: I + I = II
III + I = IV
-
February 26th, 2014, 10:42 AM
#2
Re: Adding Roman Numerical
Bad news. You'd have to convert to decimal and then convert back to Roman numeral
-
February 27th, 2014, 03:45 AM
#3
Re: Adding Roman Numerical
Well, addition is defined in terms of numerical symbols. Therefore there is no way to do it without converting roman numbers to decimals at some point. Unless, you create a new addition interface for yourself and redefine addition from scratch without decimals : )
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|