BreakPoint

cancel
Showing results for 
Search instead for 
Did you mean: 

Roman - A Little Coding Challenge

I got almost this far and gave up until tonight.  Now I give up!

 

RomanFun_BD.png

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 11 of 13
(6,645 Views)

Hello,

It's a really nice code jcarmody,

Can you please post a VI snippet of this code, or join the .vi on a post ?

Thanks,

S. Michaud

0 Kudos
Message 12 of 13
(6,570 Views)

I thought I make two standard tools in the style of the VIs in the String/Number Conversion Palette.

 

  • Number to Roman String
  • Roman String to Number

 

I Implemented very crude error handling:

"Number to Roman String" returns empty string for illegal inputs.

"Roman String to Number" returns -1 for illegal inputs.

Number is I32 representation only (the algorithm needs to be modified if it should work with e.g. U32).

 

VIs are in LabVIEW 2011. Enjoy and modify as needed.

 

 

Download All
Message 13 of 13
(6,561 Views)