Shopping Cart

Search:

Signup

Contact

FileMaker is a registered trademark of FileMaker, Inc. in the U.S. and other countries.

# FileMaker Pro Custom Functions

NumToHex ( integer )

Rate this function:

Discuss this Custom Function

Jeremiah Small, Soliant Consulting
http://jsmall.us

Convert Base 10 number to Base 16

Sample Input:
 NumToHex ( 3440 )
Sample Output:
 D70

Then copy & paste into FileMaker Advanced's Edit Custom Function window.

## Description:

To convert a base 10 number to hexadecimal you repeatedly divide the number by 16, each time recording the remainder. At the end of this line up all of the remainders and reverse their order. As you know, hexadecimal is base 16, and hence makes use of 6 extra symbols (ABCDEF). A = 10, and F, 15. 16 is written as 10. When converting to any base above 10 a remainder equal to or greater than 10 has to be written using the correct symbol.

Similar to

Example:

3440/16 = 215 (Mod = 0dec or 0hex)
215/16 = 13 (Mod = 7dec or 7hex)
13/16 = 0 (Mod = 13dec or Dhex)

In reverse order, the hex reads D70

Hence, 3440dec = D70hex

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

This is my Custom Function and I want to edit it

## Discuss:

 Your Name: City/Location: Comment: characters left. If you paste in more than 1500 characters, it will be truncated. Discuss the function - advertisements and other useless posts will be deleted. Answer 4 + 2 =
 Search for Custom Functions:

 Download the Custom Function Dashboard Widget for OS X Keep all the latest Custom Functions right at your fingertips!

 1. UnQuote ( string ) (Tue, Apr 10, 12:34pm) 2. TrimInvalidTrailingChars ( invalidChars ; textToTrim ) (Wed, Apr 04, 10:31pm) 3. ITA_PositionIndexValues( textList; searchList; searchValue; occurrence) (Wed, Apr 04, 6:29pm) 4. @UniqueValuesToAdd ( existingValues ; addingValues ; ~datatype ; ~locale ) (Sat, Mar 31, 12:52am) 5. ExcludeValues(MyList ; Out) (Wed, Mar 21, 7:23am) 6. PreviousMonthEndDate ( myDate ) (Wed, Mar 07, 3:35am) 7. PreviousMonthName (myDate) (Wed, Mar 07, 3:33am) 8. FmTableFields ( tableName ; fieldsInclude ; fieldsExclude ; classExclude ; typeExclude ; prefixExclude ) (Fri, Mar 02, 6:32am)