2 Replies Latest reply on Oct 3, 2012 9:03 AM by SandyHaaf

    Convert to Binary

    SandyHaaf

      Title

      Convert to Binary

      Post

           I'm trying to figure out a way to convert a number (hex or decimal)  to Binary. 

           Does filemaker pro (not advanced)  have built in functions for this?

           Any help to point me in the right direction would be greatly appreciated.

           Thanks,

           Sandy

        • 1. Re: Convert to Binary
          philmodjunk

               No built in functions for this. As with your earlier post on hexadecimal conversions, custom functions are probably your best bet.

               Hex to Binary conversion could exploit the fact that there is a 4 bit equivalent to all 16 possible "digits" of a hexadecimal number:

               Substitute ( hexNumber ; ["0" ; "0000" ] ; [ "1" ; "0001"] ; ["2" ; "0010"] ; /*continue the pattern here*/ ; ["F" ; "1111"] )

                

          • 2. Re: Convert to Binary
            SandyHaaf

                 That works perfectly!!!  Thank you so much