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
    Posts
    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

  2. #2
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,283

    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
    Posts
    14

    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
  •  





Click Here to Expand Forum to Full Width

Featured