Maximum number in Roman numerals. Roman numerals and Unicode

Subscribe
Join the “koon.ru” community!
In contact with:

Roman numerals- numbers used by the ancient Romans in their non-positional number system.

Integers are written by repeating these numbers. Moreover, if a larger number is in front of a smaller one, then they are added (the principle of addition), but if a smaller number is in front of a larger one, then the smaller one is subtracted from the larger one (the principle of subtraction). The last rule applies only to avoid repeating the same number four times.

Roman numerals appeared around 500 BC among the Etruscans.

Numbers

To consolidate in memory letter designations numbers in descending order there is a mnemonic rule:

M s D arim WITH face-to-face L imons, X vatit V seven I X.

Respectively M, D, C, L, X, V, I

To correctly write large numbers in Roman numerals, you must first write the number of thousands, then hundreds, then tens, and finally units.

There is a "shortcut" for writing large numbers such as 1999. It is not recommended, but is sometimes used to simplify things. The difference is that to reduce a digit, any digit can be written to the left of it:

  • 999. Thousand (M), subtract 1 (I), we get 999 (IM) instead of CMXCIX. Consequence: 1999 - MIM instead of MCMXCIX
  • 95. One hundred (C), subtract 5 (V), get 95 (VC) instead of XCV
  • 1950: Thousand (M), subtract 50 (L), get 950 (LM). Consequence: 1950 - MLM instead of MCML

It was only in the 19th century that the number “four” was written down as “IV”; before that, the number “IIII” was most often used. However, the entry “IV” can already be found in the documents of the Forme of Cury manuscript dating back to 1390. Watch dials have traditionally used "IIII" instead of "IV" in most cases, mainly for aesthetic reasons: this spelling provides visual symmetry with the "VIII" numerals on the opposite side, and an inverted "IV" is more difficult to read than "IIII".

Application of Roman numerals

In Russian, Roman numerals are used in the following cases:

  • Century or millennium number: XIX century, II millennium BC. e.
  • Serial number of the monarch: Charles V, Catherine II.
  • The volume number in a multi-volume book (sometimes the numbers of parts of the book, sections or chapters).
  • In some publications - the numbers of sheets with the preface to the book, so as not to correct the links within the main text when the preface is changed.
  • Antique watch dial markings.
  • Others important events or list items, for example: Euclid's V postulate, II World War, XXII Congress of the CPSU, etc.

In other languages, the scope of application of Roman numerals may have specific features; for example, in Western countries, the year number is sometimes written in Roman numerals.

Roman numerals and Unicode

The Unicode standard defines characters to represent Roman numerals as part of Number forms(English) Number Forms), in the area of ​​characters with codes U+2160 to U+2188. For example, MCMLXXXVIII can be represented in the form ⅯⅭⅯⅬⅩⅩⅩⅧ . This range includes both lowercase and uppercase numerals from 1 (Ⅰ or I) to 12 (Ⅻ or XII), including combination glyphs for composite numbers, such as 8 (Ⅷ or VIII), mainly to provide compatibility with East Asian character sets in industry standards such as JIS X 0213, where these characters are defined. Combination glyphs are used to represent numbers that were previously composed of individual characters (for example, Ⅻ instead of its representation as Ⅹ and Ⅱ). In addition to this, glyphs exist for the archaic forms of 1000, 5000, 10,000, major reverse C (Ɔ), the late form of 6 (ↅ, similar to the Greek stigma: Ϛ), the early form of 50 (ↆ, similar to to the downward-pointing arrow ↓⫝⊥ ), 50,000, and 100,000. It should be noted that the backsmall small c, ↄ is not included in Roman numeral characters, but is included in the Unicode standard as the Claudian capital Ↄ.

Roman numerals to Unicode
Code 0 1 2 3 4 5 6 7 8 9 A B C D E F
Meaning 1 2 3 4 5 6 7 8 9 10 11 12 50 100 500 1 000
U+2160
2160

2161

2162

2163

2164

2165

2166

2167

2168

2169

216A

216B

216C

216D

216E

216F
U+2170
2170

2171

2172

2173

2174

2175

2176

2177

2178

2179

217A

217B

217C

217D

217E

217F
Meaning 1 000 5 000 10 000 - - 6 50 50 000 100 000
U+2160! U+2180
2180

2181

2182

Characters in the range U+2160-217F are present only for compatibility with other standards that define these characters. In everyday life, ordinary letters of the Latin alphabet are used. Displaying such symbols requires software, which supports the Unicode standard, and a font containing the glyphs corresponding to these characters.

We all use Roman numerals - we use them to mark the numbers of centuries or months of the year. Roman numerals are found on clock dials, including the chimes of the Spasskaya Tower. We use them, but we don't know much about them.

How do Roman numerals work?

The Roman counting system in its modern version consists of the following basic characters:

I 1
V 5
X 10
L 50
C 100
D 500
M 1000

To remember numbers that are unusual for us who use the Arabic system, there are several special mnemonic phrases in Russian and English:
We Give Juicy Lemons, That's Enough
We Give Advice Only to Well-Educated Individuals
I Value Xylophones Like Cows Dig Milk

The system for arranging these numbers relative to each other is as follows: numbers up to three inclusive are formed by adding units (II, III) - repeating any number four times is prohibited. To form numbers greater than three, the larger and smaller digits are added or subtracted, for subtraction the smaller digit is placed before the larger one, for addition - after, (4 = IV), the same logic applies to other digits (90 = XC). The order of thousands, hundreds, tens and units is the same as what we are used to.

It is important that any number should not be repeated more than three times, so the longest number up to a thousand is 888 = DCCCLXXXVIII (500+100+100+100+50+10+10+10+5+1+1+1).

Alternative options

The ban on the fourth use of the same number in a row began to appear only in the 19th century. Therefore, in ancient texts one can see variants IIII and VIII instead of IV and IX, and even IIII or XXXXXX instead of V and LX. Remnants of this writing can be seen on the clock, where four is often marked with four units. In old books, there are also frequent cases of double subtractions - XIIX or IIXX instead of the standard XVIII.

Also in the Middle Ages, a new Roman numeral appeared - zero, which was denoted by the letter N (from the Latin nulla, zero). Large numbers were marked with special signs: 1000 - ↀ (or C|Ɔ), 5000 - ↁ (or |Ɔ), 10000 - ↂ (or CC|ƆƆ). Millions are obtained by double underlining standard numbers. Fractions were also written in Roman numerals: ounces were marked using symbols - 1/12, half was marked with the symbol S, and everything greater than 6/12 was marked with an addition: S = 10\12. Another option is S::.

Origin

At the moment there is no single theory of the origin of Roman numerals. One of the most popular hypotheses is that Etruscan-Roman numerals originated from a counting system that uses notched strokes instead of numbers.

Thus, the number “I” is not the Latin or more ancient letter “i”, but a notch reminiscent of the shape of this letter. Every fifth notch was marked with a bevel - V, and the tenth was crossed out - X. The number 10 in this count looked like this: IIIIΛIIIIX.

It is thanks to this recording of numbers in a row that we owe a special system of adding Roman numerals: over time, the recording of the number 8 (IIIIΛIII) could be reduced to ΛIII, which convincingly demonstrates how the Roman counting system acquired its specificity. Gradually, the notches turned into graphic symbols I, V and X, and acquired independence. Later they began to be identified with Roman letters - since they were similar in appearance to them.

An alternative theory belongs to Alfred Cooper, who suggested looking at the Roman counting system from a physiological point of view. Cooper believes that I, II, III, IIII is a graphical representation of the number of fingers right hand, thrown out by the merchant when naming the price. V is the extended thumb, which together with the palm forms a figure similar to the letter V.

That is why Roman numerals add up not only ones, but also add them with fives - VI, VII, etc. - this is the thumb thrown back and the other fingers of the hand extended. The number 10 was expressed by crossing the hands or fingers, hence the symbol X. Another option was to simply double the number V, getting an X. Large numbers were transmitted using the left palm, which counted tens. So gradually the signs of ancient finger counting became pictograms, which then began to be identified with the letters of the Latin alphabet.

Modern Application

Today in Russia, Roman numerals are needed, first of all, to record the number of the century or millennium. It is convenient to place Roman numerals next to Arabic ones - if you write the century in Roman numerals, and then the year in Arabic, then your eyes will not be dazzled by the abundance of identical signs. Roman numerals have a certain connotation of archaism. They are also traditionally used to designate serial number monarch (Peter I), volume number of a multi-volume publication, sometimes a chapter of a book. Roman numerals are also used in antique watch dials. Important numbers, such as the year of the Olympiad or the number of a scientific law, can also be recorded using Roman numerals: World War II, Euclid's V postulate.

IN different countries Roman numerals are used slightly differently: in the USSR it was customary to indicate the month of the year using them (1.XI.65). In the West, the year number is often written in Roman numerals in the credits of films or on the facades of buildings.

In parts of Europe, especially in Lithuania, you can often find the days of the week designated in Roman numerals (I – Monday, and so on). In Holland, Roman numerals are sometimes used to denote floors. And in Italy they mark 100-meter sections of the route, marking, at the same time, every kilometer with Arabic numerals.

In Russia, when writing by hand, it is customary to emphasize the Roman numerals below and above at the same time. However, often in other countries, the underscore meant increasing the case of the number by 1000 times (or 10,000 times with a double underscore).

There is a common misconception that modern Western clothing sizes have some connection with Roman numerals. In fact, the designations are XXL, S, M, L, etc. have no connection with them: these are abbreviations English words eXtra (very), Small (small), Large (large).

Positional , , , , , , , , , , Nega-positional Symmetrical Mixed systems Fibonacci Non-positional Unit (unary)

Roman numerals

1 I lat. unus, unum
5 V lat. quinque
10 X lat. decem
50 L lat. quinquaginta
100 C lat. centum
500 D lat. quingenti
1000 M lat. mille

In the Russian language, there are mnemonic rules for fixing in memory the letter designations of numbers in descending order:

M s D arim WITH face-to-face L imons, X vatit V seven I X.

M s D we eat C tips L look X ok V well-mannered I to individuals

Respectively M, D, C, L, X, V, I

Number Designation
1 I
2 II
3 III
4 IV, until the 19th century - III
5 V
6 VI
7 VII
8 VIII (sometimes - IIX)
9 IX (sometimes VIII)
10 X
20 XX
30 XXX
40 XL
50 L
60 LX
70 LXX
80 LXXX
90 XC
100 C
200 CC
300 CCC
400 CD
500 D; IƆ
600 DC; IƆC
700 DCC; IƆCC
800 DCCC; IƆCCC
900 CM; CCIƆ
1 000 M; ↀ; CIƆ
2 000 MM; CIƆCIƆ
3 000 MMM; CIƆCIƆCIƆ
3 999 MMMCMXCIX
4 000 MV; ↀↁ; CIƆIƆƆ
5 000 V ; ↁ; IƆƆ
6 000 V M; ↁↀ; IƆƆCIƆ
7 000 VMM; ↁↀↀ; IƆƆCIƆCIƆ
8 000 V MMM; ↁↀↀↀ; IƆƆCIƆCIƆCIƆ
9 000 IX; ↀↂ; CIƆCCIƆƆ
10 000 X ; ↂ; CCIƆƆ
20 000 XX; ↂↂ; CCIƆƆCCIƆƆ
30 000 XXX; ↂↂↂ; CCIƆƆCCIƆƆCCIƆƆ
40 000 XL; ↂↇ; CCIƆƆIƆƆƆ
50 000 L; ↇ; IƆƆƆ
60 000 LX ; ↇↂ; IƆƆƆCCIƆƆ
70 000 LXX ; ↇↂↂ; IƆƆƆCCIƆƆCCIƆƆ
80 000 LXXX; ↇↂↂↂ; IƆƆƆCCIƆƆCCIƆƆCCIƆƆ
90 000 XC ; ↂↈ; CCIƆƆCCCIƆƆƆ
100 000 C; ↈ; CCCIƆƆƆ
200 000 CC; ↈↈ; CCCIƆƆƆCCCIƆƆƆ
300 000 CCC ; ↈↈↈ; CCCIƆƆƆCCCIƆƆƆCCCIƆƆƆ
400 000 CD ; CCCIƆƆƆIƆƆƆƆ
500 000 D ; IƆƆƆƆ
600 000 DC ; IƆƆƆƆCCCIƆƆƆ
700 000 DCC; IƆƆƆƆCCCIƆƆƆCCCIƆƆƆ
800 000 DCCC ; IƆƆƆƆCCCIƆƆƆCCCIƆƆƆCCCIƆƆƆ
900 000 CM; C I ; CCCIƆƆƆCCCCIƆƆƆƆ
1 000 000 M ; I; CCCCIƆƆƆƆ

To correctly write large numbers in Roman numerals, you must first write the number of thousands, then hundreds, then tens, and finally units.

In this case, some of the numbers (I, X, C, M) may be repeated, but no more three times contract; thus, they can be used to write any integer no more than 3999(MMMCMXCIX). In early periods, there were signs to indicate larger numbers - 5000, 10,000, 50,000 and 100,000 (then the maximum number according to the mentioned rule is 399,999). When writing numbers in the Roman numeral system, the smaller digit may appear to the right of the larger one; in this case it is added to it. For example, the number 283 in Roman is written as CCLXXXIII, that is, 100+100+50+30+3=283. Here the figure representing a hundred is repeated twice, and the figures representing ten and one, respectively, are repeated three times.

Example: number 1988. One thousand M, nine hundred CM, eight tens LXXX, eight units VIII. Let's write them down together: MCMLXXXVIII.

Quite often, to highlight numbers in the text, a line was drawn over them: LXIV. Sometimes a line was drawn both above and below: XXXII- in particular, it is customary to highlight Roman numerals in Russian handwritten text (this is not used in typesetting due to technical complexity). For other authors, the overbar could indicate an increase in the value of the figure by 1000 times: V = 5000.

It was only in the 19th century that the number “four” was written down as “IV”; before that, the number “IIII” was most often used. However, the entry “IV” can already be found in the documents of the “Forme of Cury” manuscript dating back to 1390. Watch dials have traditionally used "IIII" instead of "IV" in most cases, mainly for aesthetic reasons: this spelling provides visual symmetry with the "VIII" numerals on the opposite side, and an inverted "IV" is more difficult to read than "IIII". There is also a version that IV was not written on the dial because IV is the first letters of the name of the god Jupiter (IVPITER).

The smaller number can be written to the left of the larger one, then it should be subtracted from the larger one. In this case, only numbers denoting 1 or powers of 10 can be subtracted, and only the two digits closest in the number series to the subtrahend (that is, the subtrahend multiplied by 5 or 10) can be used as a minuend. Repetitions of a smaller number are not allowed. Thus there is only six options using the “subtraction rule”:

  • IV = 4
  • IX = 9
  • XL=40
  • XC = 90
  • CD = 400
  • CM = 900

For example, the number 94 would be XCIV = 100 − 10 + 5 − 1 = 94 - the so-called “subtraction rule” (appeared in late antiquity, and before that the Romans wrote the number 4 as IIII, and the number 40 as XXXX).

It should be noted that other methods of “subtraction” are unacceptable; thus, the number 99 should be written as XCIX, but not as IC. However, nowadays, in some cases, a simplified notation of Roman numerals is also used: for example, in Microsoft Excel, when converting Arabic numerals to Roman using the “ROMAN()” function, you can use several types of representation of numbers, from classical to highly simplified (for example, the number 499 can be written as CDXCIX, LDVLIV, XDIX, VDIV or ID). The simplification is that to reduce a digit, any other digit can be written to the left of it:

  • 999. Thousand (M), subtract 1 (I), we get 999 (IM) instead of CMXCIX. Consequence: 1999 - MIM instead of MCMXCIX
  • 95. One hundred (C), subtract 5 (V), get 95 (VC) instead of XCV
  • 1950: Thousand (M), subtract 50 (L), get 950 (LM). Consequence: 1950 - MLM instead of MCML

Large numbers can also be written using Roman numerals. To do this, a line is placed over those numbers that denote thousands, and a double line is placed over the numbers that denote millions. For example, the number 123123 would look like this:

CXXIII CXXIII

And a million is like I, but with not one, but two features at the head: I

Application

Regular Expressions

The regular expression for checking Roman numerals is ^(M(0,3))(D?C(0,3)|C)(L?X(0,3)|X)(V?I(0,3)| I)$ In Perl, you can use regular expression m/\b((?:M(0,3)?(?:D?C(0,3)|C)?(?:L?X(0,3)|X)?(?:I( 0.3)?V?I(0.3)|I)))\b/gs .

Conversion

Special functions are used to convert numbers written in Arabic numerals into Roman numerals. For example, in the Russian version of Microsoft Excel there is a function for this ROMAN(argument), in English version Microsoft Excel and in any version of OpenOffice.org Calc this function is called ROMAN(argument).

Conversion Functions in JavaScript

var arab = ; var roman = ["I","IV","V","IX","X","XL","L","XC","C","CD","D","CM ","M"]; function arabToRoman(number) ( if(!number) return ""; var ret = ""; var i = arab.length - 1; while(number > 0) ( if(number >= arab[i]) ( ret + = roman[i]; number -= arab[i]; ) else ( i--; ) ) return ret; ) function romanToArab(str) ( str = str.toUpperCase(); var ret = 0; var i = arab .length - 1; var pos = 0; while(i >= 0 && pos< str.length) { if(str.substr(pos, roman[i].length) == roman[i]) { ret += arab[i]; pos += roman[i].length; } else { i--; } } return ret; }

Similar functions in C (C89):

#include const int arabar = ( 1, 4, 5, 9, 10, 40, 50, 90, 100, 400, 500, 900, 1000); const char *romanar = ( "I", "IV", "V", "IX", "X", "XL", "L", "XC", "C", "CD", "D", "CM", "M"); char *arab2roman(unsigned short int arab) ( static char roman; const int m = sizeof(arabar)/sizeof(int)-1, arabmax=arabar[m]; const char romanmax=romanar[m]; int i, n ; if(!arab) ( *roman=0; return roman; ) i=0; while(arab>arabmax) ( roman = romanmax; arab -= arabmax; ) n=m; while(arab > 0) ( if( arab >= arabar[n]) ( roman = romanar[n]; if(n&1) roman = romanar[n]; arab -= arabar[n]; ) else n--; ) roman[i]=0; return roman; ) unsigned short int roman2arab(char *roman) ( const int m = sizeof(arabar)/sizeof(int)-1; unsigned short int arab; int len, n, i, pir; len=strlen(roman); arab=0; n=m; i=0; while(n >= 0 && i< len) { pir=n&1; if(roman[i] == romanar[n] && (!pir || roman == romanar[n])) { arab += arabar[n]; i += 1+pir; } else n--; } return arab; }

type str2 = string; const Rims: array of str2 = ("M","CM","D","CD","C","XC","L","XL","X","IX","V ","IV","I"," "); Arab: array of integer = (1000, 900, 500, 400, 100, 90, 50, 40, 10, 9, 5, 4, 1, 0); var N, NI, I, J: integer; S:string; function Arab2Rim(N: integer) : string; var S: string; I: integer; begin S:= ""; I:=1; while N > 0 do begin while Arab[I]<=N do begin S:= S + Rims[I]; N:= N - Arab[I] end; I:=I+1 end; Arab2Rim:= S end; function Rim2Arab (S:string) : integer; var I, N: integer; begin I:=1; N:= 0; while S<>"" do begin while Rims[I] = Copy(S, 1, Length(Rims[I])) do begin S:= Copy(S, 1+Length(Rims[I]), 255); N:= N + Arab[I] end; I:=I+1 end; Rim2Arab:= N end; begin WriteLn("Translation from Arabic to Roman numerals. 1999 B_SA"); ( Write("Enter the number to convert:"); ReadLn(N);) for NI:= 26 to 46 do WriteLn(NI," = ",Arab2Rim(NI)," reverse ", Rim2Arab(Arab2Rim(NI)) ); end.

function Arab2Roman(arab:integer):string; var i:integer; d:integer; arab_str:string; arab_len:integer; begin Result:= ""; arab_str:= IntToStr(arab); arab_len:= Length(arab_str); for i:= 0 to arab_len-1 do begin d:= StrToInt(String(arab_str)); if (d+1) mod 5 = 0 then Result:= Copy("IXCM", 1+i, 1) + Copy("VXLCDM", i*2 + (d+1) div 5, 1) + Result else Result:= Copy("VLD", 1+i, d div 5) + Copy("IIIXXXCCCMMM", 1+i*3, (d mod 5)/2) + Result; end; end;

A distinctive feature of this algorithm is that it does not use arrays (unless, of course, you consider a string to be an array of characters).

10 INPUT "ARABIC NUMBER: "; А$ 20 FOR I=0 TO LEN(A$)-1 30 X=VAL(MID$(A$,LEN(A$)-I,1)) 40 IF X=4 OR X=9 THEN B$= MID$("IXCM",I+1,1)+MID$("VXLCDM",I*2+(X+1)/5,1)+B$ 50 IF X<4 THEN B$=MID$("IIIXXXCCCMMM",1+I*3,X)+B$ ELSE IF X>4 AND X<9 THEN B$=MID$("VLD",I+1,1)+MID$("IIIXXXCCCMMM",1+I*3,X-5)+B$ 60 NEXT I 70 PRINT "РИМСКОЕ ЧИСЛО: "; B$

string-join(for $num in (1999) return (("","M","MM","MMM")[($num idiv 1000) mod 10+1], ("","C", "CC","CCC","CD","D","DC","DCC","DCCC","CM")[($num idiv 100) mod 10+1], (""," X","XX","XXX","XL","L","LX","LXX","LXXX","XC")[($num idiv 10) mod 10+1], (" ","I","II","III","IV","V","VI","VII","VIII","IX")[$num mod 10+1]), "" )

use strict; use warnings; my $n = 1999; my $nums = [ ["", qw(I II III IV V VI VII VIII IX) ], ["", qw(X XX XXX XL L LX LXX LXXX XC) ], ["", qw(C CC CCC CD D DC DCC DCCC CM) ], ["", qw(M MM MMM) ] ]; my $i = 0; my @res = (); push @res, ($nums->[$i++][ ($n % 10, $n = int($n / 10)) ]) for 0 .. 3; print reverse @res;

import java.util.*; public class IntegerConverter ( public static String intToRoman(int number) ( if (number >= 4000 || number<= 0) return null; StringBuilder result = new StringBuilder(); Iteratoriterator = units.descendingKeySet().iterator(); while (iterator.hasNext()) ( Integer key = iterator.next(); while (number >= key) ( number -= key; result.append(units.get(key)); ) ) return result.toString( ); ) private static final NavigableMap units; static(NavigableMap initMap = new TreeMap (); initMap.put(1000, "M"); initMap.put(900, "CM"); initMap.put(500, "D"); initMap.put(400, "CD"); initMap.put(100, "C"); initMap.put(90, "XC"); initMap.put(50, "L"); initMap.put(40, "XL"); initMap.put(10, "X"); initMap.put(9, "IX"); initMap.put(5, "V"); initMap.put(4, "IV"); initMap.put(1, "I"); units = Collections.unmodifiableNavigableMap(initMap); ) )

///

/// The class is designed to convert Arabic numbers to Roman numbers and vice versa /// /// /// The class initially contains an alphabet of Roman numbers capable of defining Arabic numbers from 1 to 39999 /// If you need to expand the range, you can define additional notations for Roman numerals using the /// field Basic Roman Numbers public static class RomanNumber ( /// /// Alphabet of basic Roman numerals /// The alphabet is built in the form of a dictionary. The dictionary key is Arabic number(int), the value is the corresponding /// Roman numeral (string) /// /// /// Contains Roman notation for Arabic numbers 1*,4*,5*,9* - where "*" represents 0...N zeros /// When created, it contains the designation of numbers from 1 to 10000 (I...ↂ). Since in a Roman number one symbol cannot /// appear more than three times, it is initially possible to convert numbers from 1 to 39999 into the Roman format. /// If you want to be able to work with a large number of Roman numbers, then you should add additional notations to the list /// starting from 40000 without skipping the elements 1*,4*,5*,9*. /// public static SortedList BasicRomanNumbers ( get; set; ) static RomanNumber() ( BasicRomanNumbers = new SortedList (17); BasicRomanNumbers.Add(1, "I"); BasicRomanNumbers.Add(4, "IV"); BasicRomanNumbers.Add(5, "V"); BasicRomanNumbers.Add(9, "IX"); BasicRomanNumbers.Add(10, "X"); BasicRomanNumbers.Add(40, "XL"); BasicRomanNumbers.Add(50, "L"); BasicRomanNumbers.Add(90, "XC"); BasicRomanNumbers.Add(100, "C"); BasicRomanNumbers.Add(400, "CD"); BasicRomanNumbers.Add(500, "D"); BasicRomanNumbers.Add(900, "CM"); BasicRomanNumbers.Add(1000, "M"); BasicRomanNumbers.Add(4000, "Mↁ"); BasicRomanNumbers.Add(5000, "ↁ"); BasicRomanNumbers.Add(9000, "Mↂ"); BasicRomanNumbers.Add(10000, "ↂ"); ) /// /// Calculates the maximum possible Roman numeral for the current Roman numeral alphabet. /// /// Maximum possible Roman numeral public static uint MaximumRomanNumber() ( int lastNumber = BasicRomanNumbers.Keys.Last(); int numberWithoutZeros = int.Parse(lastNumber.ToString().Replace("0","\0")); int preliminary=0; switch (numberWithoutZeros) ( case 1: preliminary = lastNumber * 4 - 1; break; case 4: case 9: preliminary = lastNumber; break; case 5: preliminary = lastNumber + lastNumber / 5 * 3; break; default: break; ) return uint.Parse(preliminary.ToString().Replace("0", "9"));; ) /// /// Converts an integer to a Roman numeral /// /// Arabic number to be converted to Roman notation /// Generated when a number equal to "0" /// or a number greater than the maximum Roman numeral is passed as a parameter. /// A string representing a Roman numeral public static string ArabicRoman(this int numberArab) ( StringBuilder numberRoman = new StringBuilder(); //Exclude the "-" sign from the Arabic number and make it the first character of the Roman number if (numberArab< 0) { числоРимское.Append("-"); числоАраб = -числоАраб; } if (числоАраб == 0) throw new ArgumentOutOfRangeException("числоАраб", числоАраб, "Недопустимое значение аргумента: римские числа не могут быть равными\"0\""); else if (числоАраб >MaximumRomanNumber()) throw new ArgumentOutOfRangeException("numberArab", numberArab, string.Format("Invalid argument value: it is not possible to specify a Roman numeral greater than (0)", MaximumRomanNumber())); //We decompose the Arabic number into its constituent Roman numbers and combine them into one line var necessaryBasicRomanNumbers = from to in BasicRomanNumbers.Keys where to<= числоАраб orderby к descending select к; foreach (int тек in необходимыеБазовыеРимскиеЧисла) { while ((числоАраб / тек) >= 1) ( numberArab -= current; numberRoman.Append(BaseRomanNumbers[current]); ) ) return numberRoman.ToString(); ) /// /// Converts Roman numerals to Arabic numerals /// /// Roman number to be converted to int type /// Generated when a non-Roman number is passed as a parameter /// An integer representing the Arabic notation of a Roman numeral public static int RomanVArabic(this string Roman number) ( int Arabic number = 0; sbyte negative = 1; string Rome = Roman number.Trim(); if (Roman == "-") ( negative = -1; Rome = Roman.Substring( 1); ) StringBuilder template RomanNumbers = new StringBuilder(); foreach (int to in BasicRomanNumbers.Keys) ( int index = BasicRomanNumbers.Keys.IndexOf(k); string quantifier="?"; if (index == 0 || ( index % 4) == 0) quantifier="(0,3)"; templateRomanNumber.Insert(0, string.Format("(?<{0}>((1))(2))?", k.ToString(), BasicRomanNumbers[k], quantifier)); ) //Ignore case + match must start from the beginning of the string RomanNumber pattern.Insert(0, "(?i) ^"); //Match should be found at the end of the string RomanNumber template.Append("$"); //Simplified checking. Does not check for errors such as IVII if (!Regex.IsMatch(Roman, RomanNumber template.ToString())) throw new FormatException(string.Format("Text \"(0)\" is not a Roman numeral", numberRoman)); Match number = Regex.Match(Roman, RomanNumber pattern.ToString()); foreach (int to in BasicRomanNumbers.Keys) ( numberArab += number.Groups[to.ToString()].Length / BasicRomanNumbers[to].Length * to; ) return numberArab * negative; ) )

Write a review about the article "Roman Numerals"

Notes

see also

Technical Note: Due to technical limitations, some browsers may not display the special characters used in this article. These characters may appear as boxes, question marks, or other nonsense characters depending on your web browser, operating system, and fonts installed. Even if your browser is capable of interpreting UTF-8 and you have installed a font that supports a wide range of Unicode, such as Code2000, Arial Unicode MS, Lucida Sans Unicode, or one of the free Unicode fonts, you may have to use a different browser because browser capabilities vary this area often differ.

An excerpt characterizing Roman numerals

“I often think, maybe this is a sin,” said the princess, “and I often think: Count Kirill Vladimirovich Bezukhoy lives alone... this is a huge fortune... and what does he live for? Life is a burden for him, but Borya is just beginning to live.
“He will probably leave something for Boris,” said the countess.
- God knows, chere amie! [dear friend!] These rich people and nobles are so selfish. But I’ll still go to him now with Boris and tell him straight out what’s going on. Let them think what they want about me, I really don’t care when my son’s fate depends on it. - The princess stood up. - Now it’s two o’clock, and at four o’clock you have lunch. I'll have time to go.
And with the techniques of a St. Petersburg business lady who knows how to use time, Anna Mikhailovna sent for her son and went out into the hall with him.
“Farewell, my soul,” she said to the countess, who accompanied her to the door, “wish me success,” she added in a whisper from her son.
– Are you visiting Count Kirill Vladimirovich, ma chere? - said the count from the dining room, also going out into the hallway. - If he feels better, invite Pierre to dinner with me. After all, he visited me and danced with the children. Call me by all means, ma chere. Well, let's see how Taras distinguishes himself today. He says that Count Orlov never had such a dinner as we will have.

“Mon cher Boris, [Dear Boris,”] said Princess Anna Mikhailovna to her son when Countess Rostova’s carriage, in which they were sitting, drove along the straw-covered street and drove into the wide courtyard of Count Kirill Vladimirovich Bezukhy. “Mon cher Boris,” said the mother, pulling her hand out from under her old coat and with a timid and affectionate movement placing it on her son’s hand, “be gentle, be attentive.” Count Kirill Vladimirovich is still for you Godfather, and your future fate depends on it. Remember this, mon cher, be as sweet as you know how to be...
“If I had known that anything other than humiliation would come out of this...” the son answered coldly. “But I promised you and I’m doing this for you.”
Despite the fact that someone’s carriage was standing at the entrance, the doorman, looking at the mother and son (who, without ordering to report themselves, directly entered the glass vestibule between two rows of statues in the niches), looking significantly at the old cloak, asked who they wanted whatever, the princesses or the count, and, having learned that the count, said that their Lordships are worse off now and their Lordships do not receive anyone.
“We can leave,” the son said in French.
- Mon ami! [My friend!] - said the mother in a pleading voice, again touching her son’s hand, as if this touch could calm or excite him.
Boris fell silent and, without taking off his overcoat, looked questioningly at his mother.
“Darling,” Anna Mikhailovna said in a gentle voice, turning to the doorman, “I know that Count Kirill Vladimirovich is very ill... that’s why I came... I’m a relative... I won’t bother you, dear... But I just need to see Prince Vasily Sergeevich: because he is standing here. Report back, please.
The doorman sullenly pulled the string upward and turned away.
“Princess Drubetskaya to Prince Vasily Sergeevich,” he shouted to a waiter in stockings, shoes and a tailcoat who had run down from above and was peeking out from under the ledge of the stairs.
The mother smoothed out the folds of her dyed silk dress, looked into the solid Venetian mirror in the wall and walked briskly up the staircase carpet in her worn-out shoes.
“Mon cher, voue m"avez promis, [My friend, you promised me,” she turned again to the Son, exciting him with the touch of her hand.
The son, with lowered eyes, calmly followed her.
They entered the hall, from which one door led to the chambers allocated to Prince Vasily.
While the mother and son, going out into the middle of the room, intended to ask for directions from the old waiter who jumped up at their entrance, a bronze handle turned at one of the doors and Prince Vasily in a velvet fur coat, with one star, in a homely manner, came out, seeing off the handsome black-haired a man. This man was the famous St. Petersburg doctor Lorrain.
“C"est donc positif? [So, is this true?] - said the prince.
“Mon prince, “errare humanum est”, mais... [Prince, it is human nature to make mistakes.] - answered the doctor, rasping and pronouncing Latin words in a French accent.
– C"est bien, c"est bien... [Okay, okay...]
Noticing Anna Mikhailovna and her son, Prince Vasily dismissed the doctor with a bow and silently, but with a questioning look, approached them. The son noticed how suddenly deep sorrow was expressed in his mother's eyes, and smiled slightly.
- Yes, in what sad circumstances did we have to see each other, Prince... Well, what about our dear patient? - she said, as if not noticing the cold, insulting gaze directed at her.
Prince Vasily looked questioningly, to the point of bewilderment, at her, then at Boris. Boris bowed politely. Prince Vasily, without answering the bow, turned to Anna Mikhailovna and answered her question with a movement of his head and lips, which meant the worst hope for the patient.
- Really? - Anna Mikhailovna exclaimed. - Oh, this is terrible! It’s scary to think... This is my son,” she added, pointing to Boris. “He himself wanted to thank you.”
Boris bowed politely again.
- Believe, prince, that a mother’s heart will never forget what you did for us.
“I’m glad that I could do something pleasant for you, my dear Anna Mikhailovna,” said Prince Vasily, straightening his frill and in his gesture and voice showing here, in Moscow, in front of the patronized Anna Mikhailovna, even greater importance than in St. Petersburg, at Annette’s evening Scherer.
“Try to serve well and be worthy,” he added, turning sternly to Boris. - I'm glad... Are you here on vacation? – he dictated in his dispassionate tone.
“I’m waiting for an order, your Excellency, to go to a new destination,” answered Boris, showing neither annoyance at the prince’s harsh tone, nor a desire to engage in conversation, but so calmly and respectfully that the prince looked at him intently.
- Do you live with your mother?
“I live with Countess Rostova,” said Boris, adding again: “Your Excellency.”
“This is the Ilya Rostov who married Nathalie Shinshina,” said Anna Mikhailovna.
“I know, I know,” said Prince Vasily in his monotonous voice. – Je n"ai jamais pu concevoir, comment Nathalieie s"est decidee a epouser cet ours mal – leche l Un personnage completement stupide et ridicule.Et joueur a ce qu"on dit. [I could never understand how Natalie decided to come out marry this dirty bear. A completely stupid and ridiculous person. And a player, too, they say.]
“Mais tres brave homme, mon prince,” Anna Mikhailovna remarked, smiling touchingly, as if she knew that Count Rostov deserved such an opinion, but asked to have pity on the poor old man. – What do the doctors say? - asked the princess, after a short silence and again expressing great sadness on her tear-stained face.
“There is little hope,” said the prince.
“And I really wanted to thank my uncle again for all his good deeds to both me and Bora.” C"est son filleuil, [This is his godson," she added in such a tone, as if this news should have greatly pleased Prince Vasily.
Prince Vasily thought and winced. Anna Mikhailovna realized that he was afraid to find in her a rival in the will of Count Bezukhy. She hastened to reassure him.
- If it weren't for mine true love and devotion to his uncle,” she said, pronouncing this word with particular confidence and carelessness: “I know his character, noble, direct, but he has only princesses with him... They are still young...” She bowed her head and added in a whisper: “Did he fulfill last duty, prince? How precious are these last minutes! After all, it can’t be worse; it needs to be cooked if it is that bad. We women, Prince,” she smiled tenderly, “always know how to say these things.” It is necessary to see him. No matter how hard it was for me, I was already used to suffering.
The prince apparently understood, and understood, as he did at the evening at Annette Scherer’s, that it was difficult to get rid of Anna Mikhailovna.
“Wouldn’t this meeting be difficult for him, here Anna Mikhailovna,” he said. - Let's wait until evening, the doctors promised a crisis.
“But you can’t wait, Prince, at these moments.” Pensez, il va du salut de son ame... Ah! c"est terrible, les devoirs d"un chretien... [Think, it’s about saving his soul! Oh! this is terrible, the duty of a Christian...]
A door opened from the inner rooms, and one of the count's princesses, the count's nieces, entered, with a gloomy and cold face and a strikingly disproportionate long waist to her legs.
Prince Vasily turned to her.
- Well, what is he?
- All the same. And as you wish, this noise... - said the princess, looking around Anna Mikhailovna as if she were a stranger.
“Ah, chere, je ne vous reconnaissais pas, [Ah, dear, I didn’t recognize you,” Anna Mikhailovna said with a happy smile, walking up to the count’s niece with a light amble. “Je viens d"arriver et je suis a vous pour vous aider a soigner mon oncle. J'imagine, combien vous avez souffert, [I came to help you follow your uncle. I can imagine how you suffered," she added, with participation rolling my eyes.
The princess did not answer anything, did not even smile, and immediately left. Anna Mikhailovna took off her gloves and, in the position she had won, sat down on a chair, inviting Prince Vasily to sit next to her.
- Boris! “- she said to her son and smiled, “I’ll go to the count, to my uncle, and you go to Pierre, mon ami, in the meantime, and don’t forget to give him the invitation from the Rostovs.” They call him to dinner. I think he won't go? - she turned to the prince.
“On the contrary,” said the prince, apparently out of sorts. – Je serais tres content si vous me debarrassez de ce jeune homme... [I would be very glad if you saved me from this young man...] Sits here. The Count never asked about him.
He shrugged. The waiter led the young man down and up another staircase to Pyotr Kirillovich.

Pierre never had time to choose a career for himself in St. Petersburg and, indeed, was exiled to Moscow for rioting. The story told by Count Rostov was true. Pierre participated in tying up the policeman with the bear. He arrived a few days ago and stayed, as always, at his father's house. Although he assumed that his story was already known in Moscow, and that the ladies surrounding his father, who were always unkind to him, would take advantage of this opportunity to irritate the count, he still went after his father’s half on the day of his arrival. Entering the drawing room, the usual abode of the princesses, he greeted the ladies who were sitting at the embroidery frame and behind a book, which one of them was reading aloud. There were three of them. The eldest, clean, long-waisted, stern girl, the same one who came out to Anna Mikhailovna, was reading; the younger ones, both ruddy and pretty, differing from each other only in that one had a mole above her lip, which made her very beautiful, were sewing in a hoop. Pierre was greeted as if he were dead or plagued. The eldest princess interrupted her reading and silently looked at him with frightened eyes; the youngest, without a mole, assumed exactly the same expression; the smallest one, with a mole, of a cheerful and giggling character, bent over the embroidery frame to hide a smile, probably caused by the upcoming scene, the funnyness of which she foresaw. She pulled the hair down and bent down, as if she was sorting out the patterns and could hardly restrain herself from laughing.
“Bonjour, ma cousine,” said Pierre. – Vous ne me hesonnaissez pas? [Hello, cousin. Don't you recognize me?]
“I recognize you too well, too well.”
– How is the count’s health? Can I see him? – Pierre asked awkwardly, as always, but not embarrassed.
– The Count is suffering both physically and morally, and it seems that you took care to cause him more moral suffering.
-Can I see the count? - Pierre repeated.
- Hm!.. If you want to kill him, completely kill him, then you can see. Olga, go and see if the broth is ready for your uncle, it’s time soon,” she added, showing Pierre that they were busy and busy calming his father down, while he was obviously busy only upsetting him.
Olga left. Pierre stood, looked at the sisters and, bowing, said:
- So I’ll go to my place. When it is possible, you tell me.
He went out, and the ringing but quiet laughter of the sister with the mole was heard behind him.
The next day, Prince Vasily arrived and settled in the count's house. He called Pierre to him and told him:
– Mon cher, si vous vous conduisez ici, comme a Petersbourg, vous finirez tres mal; c"est tout ce que je vous dis. [My dear, if you behave here as in St. Petersburg, you will end very badly; I have nothing more to tell you.] The Count is very, very sick: you don’t need to see him at all.
Since then, Pierre was not disturbed, and he spent the whole day alone upstairs in his room.
While Boris entered his room, Pierre was walking around his room, occasionally stopping in the corners, making threatening gestures towards the wall, as if piercing an invisible enemy with a sword, and looking sternly over his glasses and then starting his walk again, uttering unclear words, shaking shoulders and arms outstretched.
- L "Angleterre a vecu, [England is finished," he said, frowning and pointing his finger at someone. - M. Pitt comme traitre a la nation et au droit des gens est condamiene a... [Pitt, as a traitor to the nation and people rightly, he is sentenced to ...] - He did not have time to finish his sentence on Pitt, imagining himself at that moment as Napoleon himself and, together with his hero, having already made a dangerous crossing through the Pas de Calais and conquered London - when he saw a young, slender and handsome officer entering him He stopped. Pierre left Boris as a fourteen-year-old boy and definitely did not remember him; but, despite this, in his characteristic quick and cordial manner, he took him by the hand and smiled friendly.
- Do you remember me? – Boris said calmly, with a pleasant smile. “I came with my mother to the count, but he seems to be not entirely healthy.
- Yes, he seems unwell. “Everyone worries him,” Pierre answered, trying to remember who this young man was.
Boris felt that Pierre did not recognize him, but did not consider it necessary to identify himself and, without experiencing the slightest embarrassment, looked him straight in the eyes.
“Count Rostov asked you to come to dinner with him today,” he said after a rather long and awkward silence for Pierre.
- A! Count Rostov! – Pierre spoke joyfully. - So you are his son, Ilya. As you can imagine, I didn’t recognize you at first. Remember how we went to Vorobyovy Gory with m me Jacquot... [Madame Jacquot...] a long time ago.
“You’re mistaken,” Boris said slowly, with a bold and somewhat mocking smile. – I am Boris, the son of Princess Anna Mikhailovna Drubetskaya. Rostov's father is called Ilya, and his son is Nikolai. And I didn’t know any m me Jacquot.
Pierre waved his arms and head as if mosquitoes or bees were attacking him.
- Oh, what is this! I got everything mixed up. There are so many relatives in Moscow! Are you Boris...yes. Well, you and I have agreed. Well, what do you think about the Boulogne expedition? After all, the British will have a bad time if only Napoleon crosses the canal? I think the expedition is very possible. Villeneuve would not have made a mistake!
Boris knew nothing about the Boulogne expedition, he did not read the newspapers and heard about Villeneuve for the first time.
“We are more busy here in Moscow with dinners and gossip than with politics,” he said in his calm, mocking tone. – I don’t know anything about it and don’t think anything about it. Moscow is most busy with gossip,” he continued. “Now they’re talking about you and the count.”
Pierre smiled his kind smile, as if afraid for his interlocutor, lest he might say something for which he would repent. But Boris spoke distinctly, clearly and dryly, looking directly into Pierre’s eyes.
“Moscow has nothing better to do than gossip,” he continued. “Everyone is busy with who the count will leave his fortune to, although perhaps he will outlive us all, which is what I sincerely wish...
“Yes, this is all very difficult,” Pierre picked up, “very difficult.” “Pierre was still afraid that this officer would accidentally get into an awkward conversation for himself.
“And it must seem to you,” Boris said, blushing slightly, but without changing his voice or posture, “it must seem to you that everyone is busy only with getting something from the rich man.”
“So it is,” thought Pierre.
“But I just want to tell you, in order to avoid misunderstandings, that you will be very mistaken if you count me and my mother among these people.” We are very poor, but I, at least, speak for myself: precisely because your father is rich, I do not consider myself his relative, and neither I nor my mother will ever ask or accept anything from him.
Pierre could not understand for a long time, but when he understood, he jumped up from the sofa, grabbed Boris’s hand from below with his characteristic speed and awkwardness and, flushed much more than Boris, began to speak with a mixed feeling of shame and annoyance.
- This is strange! I really... and who could have thought... I know very well...
But Boris interrupted him again:
“I’m glad I expressed everything.” Maybe it’s unpleasant for you, excuse me,” he said, reassuring Pierre, instead of being reassured by him, “but I hope I didn’t offend you.” I have a rule of saying everything directly... How can I convey it? Will you come to dinner with the Rostovs?
And Boris, apparently having relieved himself of a heavy duty, came out of awkward position and having placed another in it, he became completely pleasant again.
“No, listen,” Pierre said, calming down. – You are an amazing person. What you just said is very good, very good. Of course you don't know me. We haven’t seen each other for so long... since we were children... You can assume in me... I understand you, I understand you very much. I wouldn't do it, I wouldn't have the guts, but it's wonderful. I am very glad that I met you. It’s strange,” he added, after a pause and smiling, “what you assumed in me!” - He laughed. - Well, so what? We'll get to know you better. Please. – He shook hands with Boris. – You know, I have never been to the count. He didn’t call me... I feel sorry for him as a person... But what to do?
– And you think that Napoleon will have time to transport the army? – Boris asked, smiling.
Pierre realized that Boris wanted to change the conversation, and, agreeing with him, began to outline the advantages and disadvantages of the Boulogne enterprise.
The footman came to summon Boris to the princess. The princess was leaving. Pierre promised to come for dinner in order to get closer to Boris, firmly shook his hand, looking affectionately into his eyes through his glasses... After he left, Pierre walked around the room for a long time, no longer piercing the invisible enemy with his sword, but smiling at the memory of this dear, smart and strong young man.
As happens in early youth and especially in a lonely situation, he felt an unreasonable tenderness for this young man and promised himself to make friends with him.
Prince Vasily saw off the princess. The princess held a handkerchief to her eyes, and her face was in tears.
- It's horrible! terrible! - she said, - but no matter what it costs me, I will do my duty. I'll come over for the night. He can't be left like that. Every minute is precious. I don’t understand why the princesses are delaying. Maybe God will help me find a way to prepare it!... Adieu, mon prince, que le bon Dieu vous soutienne... [Farewell, prince, may God support you.]
“Adieu, ma bonne, [Farewell, my dear,” answered Prince Vasily, turning away from her.
“Oh, he’s in a terrible situation,” the mother said to her son as they got back into the carriage. “He hardly recognizes anyone.”
“I don’t understand, mamma, what is his relationship with Pierre?” - asked the son.
“The will will say everything, my friend; Our fate depends on him...
- But why do you think that he will leave anything to us?
- Ah, my friend! He is so rich and we are so poor!
“Well, that’s not a good enough reason, mummy.”
- Oh my god! My God! How bad he is! - exclaimed the mother.

When Anna Mikhailovna left with her son to visit Count Kirill Vladimirovich Bezukhy, Countess Rostova sat alone for a long time, putting a handkerchief to her eyes. Finally, she called.
“What are you talking about, dear,” she said angrily to the girl, who made herself wait for several minutes. – Don’t you want to serve, or what? So I'll find a place for you.
The countess was upset by the grief and humiliating poverty of her friend and therefore was out of sorts, which she always expressed by calling the maid “dear” and “you.”
“It’s your fault,” said the maid.
- Ask the Count to come to me.
The Count, waddled, approached his wife with a somewhat guilty look, as always.
- Well, countess! What a saute au madere [sauté in Madeira] will be from hazel grouse, ma chere! I tried; It’s not for nothing that I gave a thousand rubles for Taraska. Costs!
He sat down next to his wife, resting his arms bravely on his knees and ruffling his gray hair.
- What do you order, Countess?
- So, my friend, what is it that you have dirty here? - she said, pointing to the vest. “It’s sote, that’s right,” she added, smiling. - That's it, Count: I need money.
Her face became sad.
- Oh, Countess!...
And the count began to fuss, taking out his wallet.
“I need a lot, Count, I need five hundred rubles.”
And she, taking out a cambric handkerchief, rubbed her husband’s vest with it.
- Now. Hey, who's there? - he shouted in a voice that only people shout when they are sure that those they are calling will rush headlong to their call. - Send Mitenka to me!
Mitenka, that noble son raised by the count, who was now in charge of all his affairs, entered the room with quiet steps.

IN modern world Arabic numerals are considered a generally accepted standard of calculation. The decimal system is used for counting and numbering in all developed countries of the world. At the same time, Roman numerals, which were used in the non-positional number system of the ancient Romans, were not completely abandoned. You can often see that they are used to number sections in books, mark centuries in historical literature, blood type and many other parameters are indicated for which designation in Roman numerals has become standard.

When working on a computer with a browser, text editors and other applications may require you to enter some values ​​in Roman numerals. There is no separate digital block with them on standard device input, but there are several ways to quickly write Roman numerals on the keyboard.

Roman numerals on the keyboard in any application

Only a small number of application developers provide convenient ways to enter Roman numerals using the keyboard in their products. Most programs do not have special functionality for working with a non-positional number system, which requires the user to be smart enough to enter Roman numerals into them. There are two convenient ways, how to enter Roman numerals from the keyboard in any program.

Replacing Roman numerals with English letters

On any computer, by default one of the available languages ​​is English. You can quickly switch to it using the key combination Alt+Shift or Windows+Space (in Windows 10). The English alphabet completely eliminates the need for a separate numeric keypad for entering Roman numerals, since all their analogues can be typed using it in capital letters.

The following letters of the English alphabet replace Roman numerals:

  • 1 – I;
  • 5 – V;
  • 10 – X;
  • 50 – L;
  • 100 – C;
  • 500 – D;
  • 1000 – M.

Even at school, they teach how to use Roman numerals to enter various numbers. The principle is simple: the largest Roman numerals suitable for the given situation are used to get to the required number.

For example:

To enter the number 33, you will need to use 10+10+10+1+1+1.

Accordingly, in the Roman variation the number 33 would be written as follows: XXXIII.

There are also some special rules for entering Roman numerals that allow you to shorten the writing of large numbers.

Using ASCII codes to enter Roman numerals

The Windows operating system supports ASCII codes for entering various characters. They can be used, among other things, to enter Roman numerals.

ASCII is an American encoding table that lists the most popular printable and non-printable characters in numerical combinations. To use the characters from this table on a standard keyboard to enter Roman numerals, you must use the NUM number block - located on the right side of the keyboard.

Activate the additional numeric keypad using the Num Lock button. After that, hold down the left ALT on the keyboard and enter combinations of Roman numerals on the right number pad. After entering each character, you need to release ALT so that the character appears in the input field. Then again you need to hold down ALT and you can enter the next character.

The following combinations of the additional number block are identical to Roman numerals:

  • ALT+73 – I;
  • ALT+86 – V;
  • ALT+88 – X;
  • ALT+76 – L;
  • ALT+67 – C;
  • ALT+68 – D;
  • ALT+77 – M.

The method of entering Roman numerals using ASCII codes cannot be called convenient, but it can be used, for example, when for one reason or another the English keyboard layout is disabled.

How to Type Roman Numerals in Word

Microsoft, when developing the office suite and Word application, took into account that users who work with texts may need to enter Roman numerals. Since doing this using the English layout or ASCII codes is not particularly convenient, Microsoft has introduced support in Word special team, which automatically converts Arabic numerals to Roman numerals.

Return

×
Join the “koon.ru” community!
In contact with:
I am already subscribed to the community “koon.ru”