Converting a Hexadecimal String to a Binary String
Quote:
> I would like to convert an 8 Bit Hexadecimal String (example C0034000)
> to its equivalent in binary (in this case---> 1100 0000 0000 0011...
> and so on), I didnt find any possible way to do this. Iam not
> talking about the simple representation on the front pannel. Some
> Postings say that this ist possible with the "Format Value" Function
> adding an "%b" to the entring, but in my case it does not function.
The task here is to convert a string to a different string. The easiest
way to do this is to convert the string to a numer, then format the
number as a binary string.
On the string palette the Scan from String using %x can be used to
change a hex string into a numeric integer. The Format to String with
%b and other nodes can take a numeric integer and return a string of
binary characters. These two nodes wired together with the correct
constants should do what you want.
Greg McKaskle