Brian Dunning's FileMaker Custom Functions

decFromHex ( hexValue )

Convert a hex number into a decimal number.

  Average rating: 3.5 (4 votes) Log in to vote

Arnold Kegebein   Arnold Kegebein
Arnold Kegebein
http://www.kegegebin.net

Share on Facebook Share on Twitter

  Sample input:
decFromHex ( "FF0033" )
decFromHex ( "FF" )
  Sample output:
16711731
255

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

Optimized code.for faster conversion of hex numbers to decimal numbers.

 

Comments

Bruce Robertson   Bruce Robertson
Oct 23, 2017
Well; OK. But there are a LOT of functions doing exactly the same thing here. What is different / better about yours?
 
Arnold Kegebein   Arnold Kegebein, Hamburg, Germany
Oct 24, 2017
The difference is speed.

I tested it against some other hex→dec cfs and got sometimes 80 - 100% better performance.
 

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.