By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
 454,668 Members | 1,316 Online
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,668 IT Pros & Developers. It's quick & easy.

# Converting Regular numbers to Roman Numerals

 P: n/a How do you write regular numbers eg 1 23 475896 in roman numerals inC# Nov 13 '05 #1
Share this Question
4 Replies

 P: n/a "Patrick Blackman" wrote in news:OB**************@TK2MSFTNGP11.phx.gbl: How do you write regular numbers eg 1 23 475896 in roman numerals inC# Patrick, This sounds like a homework assignment. You're welcome to post code that you've written and ask for assistance, but I don't think anyone here is going to write the entire program for you. Chris. ------------- C.R. Timmons Consulting, Inc. http://www.crtimmonsinc.com/ Nov 13 '05 #2

 P: n/a I have got a class that does this conversion (and the reverse conversion) which I've posted it here before. http://tinyurl.com/gys3 (link to Google Groups) should find you the thread. (I'm guessing any assignment date has passed now.) But it is worth pointing out that you can't really convert numbers >= 10,000 into Roman notation. You'd need to use the "bar" notation (a bar above a numeral multiplies its values by 1000) but that cannot be readily encoded into a string. (I guess there might be a combining character somewhere in the Unicode that would serve this purpose, but it might not have a glyph in many fonts.) S. "Chris R. Timmons" wrote in message news:Xn**********************************@207.46.2 48.16... "Patrick Blackman" wrote in news:OB**************@TK2MSFTNGP11.phx.gbl: How do you write regular numbers eg 1 23 475896 in roman numerals inC# Patrick, This sounds like a homework assignment. You're welcome to post code that you've written and ask for assistance, but I don't think anyone here is going to write the entire program for you. Chris. ------------- C.R. Timmons Consulting, Inc. http://www.crtimmonsinc.com/ Nov 13 '05 #3

 P: n/a Thanks, this is not for a homework assignment, it was actual for a page numbering sequence an application I am doing... Again thanks..... "Simon Trew" wrote in message news:OY**************@tk2msftngp13.phx.gbl... I have got a class that does this conversion (and the reverse conversion) which I've posted it here before. http://tinyurl.com/gys3 (link to Google Groups) should find you the thread. (I'm guessing any assignment date has passed now.) But it is worth pointing out that you can't really convert numbers >= 10,000 into Roman notation. You'd need to use the "bar" notation (a bar above a numeral multiplies its values by 1000) but that cannot be readily encoded into a string. (I guess there might be a combining character somewhere in the Unicode that would serve this purpose, but it might not have a glyph in many fonts.) S. "Chris R. Timmons" wrote in message news:Xn**********************************@207.46.2 48.16... "Patrick Blackman" wrote in news:OB**************@TK2MSFTNGP11.phx.gbl: How do you write regular numbers eg 1 23 475896 in roman numerals inC# Patrick, This sounds like a homework assignment. You're welcome to post code that you've written and ask for assistance, but I don't think anyone here is going to write the entire program for you. Chris. ------------- C.R. Timmons Consulting, Inc. http://www.crtimmonsinc.com/ Nov 13 '05 #4

 P: n/a I didn't see the original post. I have just posted the complete class including reverse formatting, more error checking, and test harnesses, in another thread on this newsgroup. S. "Patrick Blackman" wrote in message news:uF**************@TK2MSFTNGP12.phx.gbl... Thanks, this is not for a homework assignment, it was actual for a page numbering sequence an application I am doing... Again thanks..... "Simon Trew" wrote in message news:OY**************@tk2msftngp13.phx.gbl... I have got a class that does this conversion (and the reverse conversion) which I've posted it here before. http://tinyurl.com/gys3 (link to Google Groups) should find you the thread. (I'm guessing any assignment date has passed now.) But it is worth pointing out that you can't really convert numbers >= 10,000 into Roman notation. You'd need to use the "bar" notation (a bar above a numeral multiplies its values by 1000) but that cannot be readily encoded into a string. (I guess there might be a combining character somewhere in the Unicode that would serve this purpose, but it might not have a glyph in many fonts.) S. "Chris R. Timmons" wrote in message news:Xn**********************************@207.46.2 48.16... "Patrick Blackman" wrote in news:OB**************@TK2MSFTNGP11.phx.gbl: > How do you write regular numbers eg 1 23 475896 in roman > numerals inC# Patrick, This sounds like a homework assignment. You're welcome to post code that you've written and ask for assistance, but I don't think anyone here is going to write the entire program for you. Chris. ------------- C.R. Timmons Consulting, Inc. http://www.crtimmonsinc.com/ Nov 13 '05 #5

### This discussion thread is closed

Replies have been disabled for this discussion.