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.

Under construction. Email me your wish list for improvements.