# Converting roman to arabic number and vice versa

**URL:** https://community.mp3tag.de/t/converting-roman-to-arabic-number-and-vice-versa/4565
**Category:** General Discussion
**Created:** [March 4, 2007, 10:42am UTC](https://community.mp3tag.de/t/converting-roman-to-arabic-number-and-vice-versa/4565 "2007-03-04T10:42:55Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [March 4, 2007, 10:42am UTC](https://community.mp3tag.de/t/converting-roman-to-arabic-number-and-vice-versa/4565/1 "2007-03-04T10:42:55Z")

</div>

If someone has the need to convert roman numbers to arabic numbers or vice versa here are two action groups that can help to do so.

The action group ' **Num Roman to Arab**' takes as input a valid roman number string and returns an arabic number.  
The input value is expected to be stored in a tag named ' **NUM\_ROMAN**'.  
At end of run the input tag ' **NUM\_ROMAN**' will be removed from the tag list.  
The result is given in the tag named ' **NUM\_ARAB**'.

The action group ' **Num Arab to Roman**' takes as input an arabic number and returns a roman number string.  
The input value is expected to be stored in a tag named ' **NUM\_ARAB**'.  
At end of run the input tag ' **NUM\_ARAB**' will be removed from the tag list.  
The result is given in the tag named ' **NUM\_ROMAN**'.

```
Allowed roman symbolic numbers:
H = 100000
Y = 50000
T = 10000
F = 5000
M = 1000
D = 500
C = 100
L = 50
X = 10
V = 5
I = 1

Allowed arabic numbers:
1 .. 99999

```

The algorithm development relies on scripting code of Mp3tag version 2.37f.  
It respects that there are some bugs in some Mp3tag scripting functions which have been detected recently in Mp3tag version 2.37f.  
Nevertheless, by implementing appropriate workaround, I got the action groups working fine.  
If those Mp3tag scripting bugs will be removed, then the code of the action groups can be further optimized.

[Num\_Roman\_to\_Arab.mta](https://community.mp3tag.de/uploads/default/original/1X/ba667a1cbd50a78f5ac8aaab3a4bc7a65d4c1e9d.mta) (9.16 KB)  
[Num\_Arab\_to\_Roman.mta](https://community.mp3tag.de/uploads/default/original/1X/b8061bf480b3d04fdbf256cfc66857d6ac3013f4.mta) (1.33 KB)

DD.20070304.1230

[Num\_Arab\_to\_Roman.mta](https://community.mp3tag.de/uploads/default/original/1X/b8061bf480b3d04fdbf256cfc66857d6ac3013f4.mta) (1.33 KB)

[Num\_Roman\_to\_Arab.mta](https://community.mp3tag.de/uploads/default/original/1X/ba667a1cbd50a78f5ac8aaab3a4bc7a65d4c1e9d.mta) (9.16 KB)

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [January 16, 2020, 6:35pm UTC](https://community.mp3tag.de/t/converting-roman-to-arabic-number-and-vice-versa/4565/2 "2020-01-16T18:35:43Z")

</div>

A post was split to a new topic: [How can I import .mta files into mp3tag?](https://community.mp3tag.de/t/how-can-i-import-mta-files-into-mp3tag/47543)

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [January 16, 2020, 6:35pm UTC](https://community.mp3tag.de/t/converting-roman-to-arabic-number-and-vice-versa/4565/3 "2020-01-16T18:35:54Z")

</div>


