473,513 Members | 13,099 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Converting Regular numbers to Roman Numerals

How do you write regular numbers eg 1 23 475896 in roman numerals inC#
Nov 13 '05 #1
4 11741
"Patrick Blackman" <pa****@videotron.ca> 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
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" <crtimmons@X_NOSPAM_Xcrtimmonsinc.com> wrote in message
news:Xn**********************************@207.46.2 48.16...
"Patrick Blackman" <pa****@videotron.ca> 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
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" <ten.egnaro@werts> 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" <crtimmons@X_NOSPAM_Xcrtimmonsinc.com> wrote in message
news:Xn**********************************@207.46.2 48.16...
"Patrick Blackman" <pa****@videotron.ca> 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
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" <pa****@videotron.ca> 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" <ten.egnaro@werts> 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" <crtimmons@X_NOSPAM_Xcrtimmonsinc.com> wrote in message news:Xn**********************************@207.46.2 48.16...
"Patrick Blackman" <pa****@videotron.ca> 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
4589
by: Ivo | last post by:
Hi, An array contains elements of the form , for example IVa, XIXb, LIX and LXIVc. Does anyone have a function which can sort this array in a way a human would expect it to, with the roman letters...
13
4356
by: Christopher Benson-Manica | last post by:
Inspired by a thread on clc++, I decided to try it out... #include <stdio.h> #include <stdlib.h> int main( int argc, char *argv ) { int i; int result=0; int this;
7
14366
by: daming23 | last post by:
Hi, I'm taking an online C++ class and having some difficulty understanding the assignments. Can someone please look at the code I wrote to ensure validity? I am not asking for the answer just some...
31
9795
by: ARMAS | last post by:
Make a program that allows the user to input a number and aoutput it's roman numeral equivalent..... plzzzzzz help.... Ex: 109 output:CIX
3
3293
by: maojecel | last post by:
guyz just want to know the simple code or program how to convert integers to roman numerals.. plz do a reply soon.. i badly need it as soon as u answer. plzzz
2
1947
by: bluedemon | last post by:
I've written the program and it works fine. but my instructor said that i can make the program short and use functions in it, but i cant really understand functions that good. so i just need a little...
7
6505
by: billbaitsg | last post by:
Hi, I need some help with figuring out why my program is all messed up. There are two portions two it, one that converts from roman to decimal (rom2dec) and another that converts from decimal to...
22
3178
by: kotlakirankumar | last post by:
please help me out the program for converting the integers to roman numerals using files in the c language from 1-5000 range send the program to my mail id ::::::: kotlakirankumar@gmail.com...
3
19281
by: capoeira26 | last post by:
I have is that my entered Roman numerals work only if the numerlas are entered in large to smaller format. For exapmple if I type MMC program will correctly display 2100, but when I enter MCM it will...
0
7254
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7153
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7373
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7432
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
4743
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3230
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3218
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1585
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
796
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.