Brian Dunning's FileMaker Custom Functions

RomanNumberal_1to4K ( Parameter_number )

Returns a Roman Numeral up to 3,999

  Average rating: 4.5 (29 votes) Log in to vote

Brad Lowry   Brad Lowry
Brad Lowry Consulting
http://www.bradlowryconsulting.com

Share on Facebook Share on Twitter

  Sample input:
RomanNumberal_1to4K(1999)
  Sample output:
MCMXCIX

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

This allows you to take any poisitive integer value and return the equivelent Roman Numeral (up to 3,999).

For this submission Ichose to included validation error text, in actual use I might just leave the results empty when not valid, or alternately make it valid by truncating anything beyond 4000, truncating decimals and taking the absolute value of the input.

It is my understanding that 4000 and beyond require special characters so that was not attempted. I am pretty confident in my method, but not in my the exacting values for Roman Numeral results thus error reports would be welcomed.

 

Comments

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 20 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: