> I want to convert a negative floating point number to its two's
> complement and display the result in a boolean array. I tried the
> "number to boolean array" function but it did not work with negative
> numbers.
>
Note that the Number to Boolean Array function works on integers. The
float is being converted to an integer at the coercion dot and the
convertor is working on the integer.
To do this on a float, you can split it into the integer and fraction.
Use the convertor for the integer portion, then build a convertor for
the fraction. Multiply the fraction by two, write the integer portion
into the array, separate out the fraction portion and repeat until the
value goes to zero or you collect as many digits as you like. Collect
the array elem
ents from left to right. Finally combine the portions
together.
Greg McKaskle