CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2014

    Adding Roman Numerical


    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

  2. #2
    Join Date
    Jul 2001
    Sunny South Africa

    Re: Adding Roman Numerical

    Bad news. You'd have to convert to decimal and then convert back to Roman numeral

  3. #3
    Join Date
    Dec 2013

    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

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.