Ask the question, how to implement binary bit operations in alteryx? Easy to implement in python。thanks!
Solved! Go to Solution.
Hi @longhui,
You can use the Formula Tool for this.
If you can't find the Operation you need, you could also go back to Python with the Python Tool.
Let me know if this helps.
Alex
thanks!So quick answer!
Could you accept it as a solution if it solved the question?
Have a great weekend!
Alex
sorry This issue is still not resolved , OR operation,Incorrect result with BinaryOr (n, m)
Thank you for your patience, I didn't expect it to be so complicated.
Me too!
I am actually super surprised that the function does not work correctly. I guess the number is "too big" but I don't know. A binary operation should be super simple to implement and shouldn't have struggle with big numbers.
Would you accept the previous answer as a solution if it worked properly for you?
It's not a bug...it's a feature!!
See the response in this post from @AdamR_AYX. All numeric values are converted to Double data type on entry to the Formula tool and then converted back on exit. Since a large INT64 value doesn't fit into the approximately 15 digits of precision in a Double there will some data loss.
We been advocating for awhile to have INT64 treated as first class citizens for a while. When dealing with large RTMS, it's common for transaction IDs to be INT64 or larger numeric values. It's doesn't long for Amazon to rack up 4,294,967,296 transactions.
Fractional seconds would nice as well
Dan
According to the method you provided, the problem was successfully solved, thank you!