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.
http://www.rcconsulting.com

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.

 

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.