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 - Show more from this author

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
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.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 20 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: