11-05-2012 09:46 AM
Hey All,
Need a Help!.
I want to convert a Boolen Array to Unsigned 64bit Number ?
I couldn't find any inbuilt functions in conversion palatte.
Number to Boolean Array Conversion supports U8,U16,...U64.
But Boolean Array to Number supports only U32.
Is there any other way to do this conversion.
Thanks
Gramy
Solved! Go to Solution.
11-05-2012 09:54 AM
On the Boolean Array to Number node, right click and select properties. From there you can specify the output data type.
11-05-2012 09:54 AM - edited 11-05-2012 09:56 AM
Hi,
you could always split your boolean array and use two Boolean Array to Number primitives. You'd only have to convert them to U64 and then multiply the MSB part with 2^32. Add the two parts and you're done.
Regards
Florian
Edit: Didn't know you could do that - thank you crossrulz
11-05-2012 09:59 AM
@Florian.Ludwig wrote:
you could always split your boolean array and use two Boolean Array to Number primitives. You'd only have to convert them to U64 and then multiply the MSB part with 2^32. Add the two parts and you're done.
If you are going to go that route, use the Join Numbers to combine the two U32s together.