Brian Dunning's FileMaker Custom Functions

GetAsArabic ( romanNumber )

GetAsArabic( romanNumber ) returns the arabic number equivalent for a roman number.

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

Jeremy Bante   Jeremy Bante
OshVay Systems, Inc.
http://www.oshvay.com

Share on Facebook Share on Twitter

  Sample input:
GetAsArabic( "MMXLVIII" )
  Sample output:
2048

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

This list has two functions already for arabic-to-roman number conversion (RomanNumberal_1to4K(Parameter_number) by Brad Lowry, and RomanNumerals ( PageNumber ) by Don Wieland); this function performs the inverse operation. GetAsArabic( romanNumber ) returns the arabic number equivalent to romanNumber [a text string representing a roman numeral]. It will return correct values for both correctly and incorrectly formed roman numberals, and ignore all characters other than âiâ, âvâ, âxâ, âlâ, âcâ, âdâ, and âmâ.

 

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 15 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:

Under construction. Email me your wish list for improvements.