Brian Dunning's FileMaker Custom Functions

Bin2Hex ( binary )

A function to convert a binary number to a hex string.

  Average rating: 4.0 (34 votes) Log in to vote

Vaughan Bromfield   Vaughan Bromfield

Share on Facebook Share on Twitter

  Sample input:
Bin2hex ( 001111 )
  Sample output:
f

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

A function to convert a binary number to a hex string.

 

Comments

Brian Dunning   Brian Dunning, BrianDunning.com
Mar 14, 2010
The Sample Input and Sample Output do not appear to match the function.
 
Vaughan Bromfield   Vaughan Bromfield
Mar 14, 2010
Thanks Brian, I've fixed it.
 
greg   greg, chicago
Jul 24, 2010
"g" theres no g in hexadecimal?
 
Vaughan Bromfield   Vaughan Bromfield
Jul 24, 2010
It's there to trap for errors in the logic, to give the num variable an over-run value. On a whim I left it there to see if anybody would notice.

Congratulations, you noticed. LOL
 

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.