Brian Dunning's FileMaker Custom Functions

ConvertFromBase ( str ; base ; charSet )

Convert any base to decimal

  Average rating: 4.7 (25 votes) Log in to vote

Steven R. Allen   Steven R. Allen
Richard Carlton Consulting, Inc.

Share on Facebook Share on Twitter

  Sample input:
Ex.1: ConvertFromBase ( 420 ; 7 ; "0123456" )

Ex. 2: ConvertFromBase ( "114E2" ; 18 ; "0123456789ABCDEFGH" )
  Sample output:
Ex. 1: 210

Ex. 2: 112358

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

This function converts any string representation of a number in any base to decimal (conventionally represented), so long as the specified base's value-to-character mapping is supplied.



Log in to post comments.


Note: these functions are not guaranteed or supported by 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 16 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: