Roman numerals help

How would I make roman numerals replace numbers without having to set every number manually?

1 Like

That actually sounds fairly easy. I’ll make the bundle when I get home.

Here’s a bundle for you. Not entirely happy with the solution, I’m sure there is an easier way.
I mean maybe I just need to use Find + length, I’ll try experimenting with that. May not finish it though, going to school soon.
I’ll give a detailed explanation of how it works when I improve it, don’t feel it’s worth talking about how it works rn because it’s pretty self explanatory and will be altered anyways.

{"data":{"behavior":{"v":"2","nodes":[{"inputCount":1,"outputCount":1,"name":"Number  -> Roman","behaviorType":"logic.NodeGroup","x":720,"y":-112,"group":"","id":"256603f42b246e4c","isMenuItem":false},{"inputCount":0,"outputCount":1,"name":"Bundle Input","behaviorType":"logic.NodeGroupInput","x":-450,"y":-144,"group":"256603f42b246e4c","id":"256682e80eaa4548","portId":"256603f42b246e4ci0","tag":"Number","dataType":2},{"inputCount":5,"outputCount":2,"name":"Text","behaviorType":"logic.data.TextBlock","x":90,"y":-216,"group":"256603f42b246e4c","id":"257b91df831fd64d","startVal":""},{"inputCount":0,"outputCount":1,"name":"Bundle Input","behaviorType":"logic.NodeGroupInput","x":-630,"y":-192,"group":"257bf8c3ca03264d","id":"257c9bc2b18bf74e","portId":"257bf8c3ca03264di0","tag":"Number","dataType":2},{"inputCount":1,"outputCount":0,"name":"Bundle Output","behaviorType":"logic.NodeGroupOutput","x":270,"y":-256,"group":"257bf8c3ca03264d","id":"257cdf0cf4b85a4a","portId":"257bf8c3ca03264do0","tag":"Length","dataType":2},{"expression":"(A+\"\").substr(1)","default0":0,"default1":0,"default2":0,"default3":0,"default4":0,"default5":0,"params":1,"version":2,"tag":"","inputCount":2,"outputCount":1,"name":"Expression","behaviorType":"logic.logic.Expression","x":-270,"y":-96,"group":"257bf8c3ca03264d","id":"257d2b8a346b4a4e"},{"inputCount":0,"outputCount":1,"name":"Mailbox","behaviorType":"logic.components.Mailbox","x":-630,"y":-104,"group":"257bf8c3ca03264d","id":"257d599e5077684b","msg":"Shorten"},{"inputCount":1,"outputCount":0,"name":"Bundle Output","behaviorType":"logic.NodeGroupOutput","x":270,"y":-96,"group":"257bf8c3ca03264d","id":"2580a9ecf790b741","portId":"257bf8c3ca03264do1","tag":"Number","dataType":2},{"expression":"A > 0? (A+\"\").length : 0","default0":0,"default1":0,"default2":0,"default3":0,"default4":0,"default5":0,"params":1,"version":2,"tag":"","inputCount":2,"outputCount":1,"name":"Expression","behaviorType":"logic.logic.Expression","x":-90,"y":-192,"group":"257bf8c3ca03264d","id":"2581454ed42eb843"},{"gateVal":0,"mode":"greater than","inputCount":2,"outputCount":2,"name":"Filter","behaviorType":"logic.logic.Filter2","x":90,"y":-192,"group":"257bf8c3ca03264d","id":"25827c69cfd7aa42"},{"gateVal":0,"mode":"greater than","inputCount":2,"outputCount":2,"name":"Filter","behaviorType":"logic.logic.Filter2","x":-90,"y":-96,"group":"257bf8c3ca03264d","id":"258707b89133354e"},{"inputCount":0,"outputCount":1,"name":"Bundle Input","behaviorType":"logic.NodeGroupInput","x":-270,"y":-112,"group":"258d1b5ce9bb2548","id":"258db73a8e213045","portId":"258d1b5ce9bb2548i0","tag":"A","dataType":2},{"inputCount":0,"outputCount":1,"name":"Bundle Input","behaviorType":"logic.NodeGroupInput","x":-270,"y":-24,"group":"258d1b5ce9bb2548","id":"258db7ef89a08c46","portId":"258d1b5ce9bb2548i1","tag":"B","dataType":2},{"inputCount":1,"outputCount":0,"name":"Bundle Output","behaviorType":"logic.NodeGroupOutput","x":270,"y":-112,"group":"258d1b5ce9bb2548","id":"258ddbd4ad997047","portId":"258d1b5ce9bb2548o0","tag":"Pass","dataType":2},{"inputCount":3,"outputCount":1,"name":"Switch","behaviorType":"logic.logic.Switch","x":-90,"y":-112,"group":"258d1b5ce9bb2548","id":"258e031cf413d94e","_startVal":0,"dataType":2},{"inputCount":3,"outputCount":1,"name":"Switch","behaviorType":"logic.logic.Switch","x":90,"y":-112,"group":"258d1b5ce9bb2548","id":"258e03a27a1bb94a","_startVal":0,"dataType":2},{"inputCount":2,"outputCount":1,"name":"Frame Gate","behaviorType":"logic.NodeGroup","x":-450,"y":-96,"group":"257bf8c3ca03264d","id":"258d1b5ce9bb2548","isMenuItem":false},{"expression":"Math.floor(A/Math.pow(10, (A+\"\").length - 1))","default0":0,"default1":0,"default2":0,"default3":0,"default4":0,"default5":0,"params":1,"version":2,"tag":"","inputCount":2,"outputCount":1,"name":"Expression","behaviorType":"logic.logic.Expression","x":90,"y":-96,"group":"257bf8c3ca03264d","id":"2599a4e33edfaf40"},{"inputCount":1,"outputCount":0,"name":"Message","behaviorType":"logic.components.Message","x":270,"y":-192,"group":"257bf8c3ca03264d","id":"259a3f132c72164c","msg":"Done","route":"SendToSelf"},{"inputCount":1,"outputCount":2,"name":"Shorten","behaviorType":"logic.NodeGroup","x":-270,"y":-144,"group":"256603f42b246e4c","id":"257bf8c3ca03264d","isMenuItem":false},{"inputCount":5,"outputCount":2,"name":"Text","behaviorType":"logic.data.TextBlock","x":270,"y":-272,"group":"256603f42b246e4c","id":"259809193dee7449","startVal":""},{"inputCount":1,"outputCount":0,"name":"Bundle Output","behaviorType":"logic.NodeGroupOutput","x":450,"y":-272,"group":"256603f42b246e4c","id":"25982e3e2bed9747","portId":"256603f42b246e4co0","tag":"Numeral","dataType":1},{"inputCount":2,"outputCount":4,"name":"Router","behaviorType":"logic.logic.Router","x":-90,"y":-184,"group":"2598c6a95f7a224b","id":"25783c694a3f794c","loop":true,"routes":4,"mode":0},{"inputCount":7,"outputCount":5,"name":"Text List","behaviorType":"logic.data.TextList","x":90,"y":-288,"group":"2598c6a95f7a224b","id":"257af110ffe16845","startVal":["X","■■","■■■","XL","L","LX","LXX","LXXX","XC"]},{"inputCount":7,"outputCount":5,"name":"Text List","behaviorType":"logic.data.TextList","x":90,"y":-440,"group":"2598c6a95f7a224b","id":"2584008e61c89944","startVal":["I","II","III","IV","V","VI","VII","VIII","IX"]},{"inputCount":0,"outputCount":1,"name":"Bundle Input","behaviorType":"logic.NodeGroupInput","x":-270,"y":-184,"group":"2598c6a95f7a224b","id":"25990b5a6e640c41","portId":"2598c6a95f7a224bi0","tag":"10x","dataType":2},{"inputCount":0,"outputCount":1,"name":"Bundle Input","behaviorType":"logic.NodeGroupInput","x":-270,"y":-120,"group":"2598c6a95f7a224b","id":"25990d24b3787745","portId":"2598c6a95f7a224bi1","tag":"#","dataType":2},{"inputCount":5,"outputCount":2,"name":"Text","behaviorType":"logic.data.TextBlock","x":270,"y":8,"group":"2598c6a95f7a224b","id":"259a9e314f65cb48","startVal":"M"},{"inputCount":7,"outputCount":5,"name":"Text List","behaviorType":"logic.data.TextList","x":90,"y":-136,"group":"2598c6a95f7a224b","id":"259aa3bce0df5440","startVal":["C","CC","CCC","CD","D","DC","DCC","DCCC","CM"]},{"inputCount":2,"outputCount":2,"name":"Repeater","behaviorType":"logic.logic.Repeater","x":90,"y":16,"group":"2598c6a95f7a224b","id":"259aad4faad89344","repeatCount":0},{"inputCount":1,"outputCount":0,"name":"Bundle Output","behaviorType":"logic.NodeGroupOutput","x":450,"y":-224,"group":"2598c6a95f7a224b","id":"259ba7c793d2444c","portId":"2598c6a95f7a224bo0","tag":"Numeral","dataType":1},{"inputCount":1,"outputCount":1,"name":"To Number","behaviorType":"logic.data.ToNumber","x":450,"y":-160,"group":"2598c6a95f7a224b","id":"259d3ce11c857547"},{"inputCount":1,"outputCount":0,"name":"Message","behaviorType":"logic.components.Message","x":630,"y":-160,"group":"2598c6a95f7a224b","id":"259d3ce23273ed4b","msg":"Shorten","route":"SendToSelf"},{"inputCount":2,"outputCount":1,"name":"Add Numeral","behaviorType":"logic.NodeGroup","x":-90,"y":-144,"group":"256603f42b246e4c","id":"2598c6a95f7a224b","isMenuItem":false},{"inputCount":0,"outputCount":1,"name":"Mailbox","behaviorType":"logic.components.Mailbox","x":-270,"y":-272,"group":"256603f42b246e4c","id":"259e5e6edf639b42","msg":"Done"},{"inputCount":5,"outputCount":2,"name":"Text","behaviorType":"logic.data.TextBlock","x":-90,"y":-272,"group":"256603f42b246e4c","id":"259e7b38e6fc2144","startVal":""}],"links":[{"input_id":"257bf8c3ca03264di0","output_id":"256682e80eaa4548o0"},{"input_id":"259809193dee7449i0","output_id":"257b91df831fd64do0"},{"input_id":"2581454ed42eb843i0","output_id":"257c9bc2b18bf74eo0"},{"input_id":"2581454ed42eb843i1","output_id":"257c9bc2b18bf74eo0"},{"input_id":"258d1b5ce9bb2548i0","output_id":"257c9bc2b18bf74eo0"},{"input_id":"257d2b8a346b4a4ei0","output_id":"257c9bc2b18bf74eo0"},{"input_id":"258707b89133354ei1","output_id":"257c9bc2b18bf74eo0"},{"input_id":"2581454ed42eb843i0","output_id":"257d2b8a346b4a4eo0"},{"input_id":"2581454ed42eb843i1","output_id":"257d2b8a346b4a4eo0"},{"input_id":"257d2b8a346b4a4ei0","output_id":"257d2b8a346b4a4eo0"},{"input_id":"258707b89133354ei1","output_id":"257d2b8a346b4a4eo0"},{"input_id":"258d1b5ce9bb2548i1","output_id":"257d599e5077684bo0"},{"input_id":"25827c69cfd7aa42i1","output_id":"2581454ed42eb843o0"},{"input_id":"257cdf0cf4b85a4ai0","output_id":"25827c69cfd7aa42o0"},{"input_id":"259a3f132c72164ci0","output_id":"25827c69cfd7aa42o1"},{"input_id":"2599a4e33edfaf40i0","output_id":"258707b89133354eo0"},{"input_id":"2599a4e33edfaf40i1","output_id":"258707b89133354eo0"},{"input_id":"258e031cf413d94ei1","output_id":"258db73a8e213045o0"},{"input_id":"258e031cf413d94ei2","output_id":"258db73a8e213045o0"},{"input_id":"258e03a27a1bb94ai1","output_id":"258db7ef89a08c46o0"},{"input_id":"258e031cf413d94ei2","output_id":"258db7ef89a08c46o0"},{"input_id":"258e03a27a1bb94ai2","output_id":"258e031cf413d94eo0"},{"input_id":"258ddbd4ad997047i0","output_id":"258e03a27a1bb94ao0"},{"input_id":"257d2b8a346b4a4ei1","output_id":"258d1b5ce9bb2548o0"},{"input_id":"2580a9ecf790b741i0","output_id":"2599a4e33edfaf40o0"},{"input_id":"2598c6a95f7a224bi0","output_id":"257bf8c3ca03264do0"},{"input_id":"2598c6a95f7a224bi1","output_id":"257bf8c3ca03264do1"},{"input_id":"25982e3e2bed9747i0","output_id":"259809193dee7449o0"},{"input_id":"2584008e61c89944i3","output_id":"25783c694a3f794co0"},{"input_id":"257af110ffe16845i3","output_id":"25783c694a3f794co1"},{"input_id":"259aa3bce0df5440i3","output_id":"25783c694a3f794co2"},{"input_id":"259aad4faad89344i0","output_id":"25783c694a3f794co3"},{"input_id":"259aad4faad89344i1","output_id":"25783c694a3f794co3"},{"input_id":"259ba7c793d2444ci0","output_id":"257af110ffe16845o1"},{"input_id":"259d3ce11c857547i0","output_id":"257af110ffe16845o1"},{"input_id":"259ba7c793d2444ci0","output_id":"2584008e61c89944o1"},{"input_id":"259d3ce11c857547i0","output_id":"2584008e61c89944o1"},{"input_id":"25783c694a3f794ci0","output_id":"25990b5a6e640c41o0"},{"input_id":"25783c694a3f794ci1","output_id":"25990d24b3787745o0"},{"input_id":"259ba7c793d2444ci0","output_id":"259a9e314f65cb48o0"},{"input_id":"259ba7c793d2444ci0","output_id":"259aa3bce0df5440o1"},{"input_id":"259d3ce11c857547i0","output_id":"259aa3bce0df5440o1"},{"input_id":"259a9e314f65cb48i1","output_id":"259aad4faad89344o0"},{"input_id":"259d3ce11c857547i0","output_id":"259aad4faad89344o1"},{"input_id":"259d3ce23273ed4bi0","output_id":"259d3ce11c857547o0"},{"input_id":"257b91df831fd64di3","output_id":"2598c6a95f7a224bo0"},{"input_id":"259e7b38e6fc2144i1","output_id":"259e5e6edf639b42o0"},{"input_id":"259809193dee7449i1","output_id":"259e7b38e6fc2144o0"},{"input_id":"257b91df831fd64di0","output_id":"259e7b38e6fc2144o0"}]}}}

It is actually an interesting problem, so I do suggest you still try to make your own Flying_Fajita without looking at mine so the version you make won’t be biased towards what you already saw.


Also, it only works up to 9999. I’ll have to do more reach into what you should actually write it as, because I think you can only do 3 M, so up to 3999 before switching to something else?

2 Likes

can we do just IIII for 4 or do we need to IV

You need IV

List of important numbers
  • I: Represents the number 1
  • IV: Represents the number 4
  • V: Represents the number 5
  • IX: Represents the number 9
  • X: Represents the number 10
  • XL: Represents the number 40
  • L: Represents the number 50
  • XC: Represents the number 90
  • C: Represents the number 100
  • CD: Represents the number 400
  • D: Represents the number 500
  • CM: Represents the number 900
  • M: Represents the number 1,000

As an example, 4594 = MMMMDXCIV

1 Like

oof, I don’t understand, why is 49 XLIX? That is 49, but isn’t IL 49 too?

2 Likes

It just works that way. XL is the 40s place. IL doesn’t count, just how it works :man_shrugging:

And I’m assuming we’re ignoring the fact that a numeral with a bar over it means Numeral * 1000…

3 Likes