Jump to content
Sign in to follow this  
Edwin

Add up Array

Recommended Posts

Hi,

 

I'm using Unistream for the first time and I want to know if it is possible to add up the values of an array?

And is it also possible to perform a NOT operation on an Integer?

 

Thanks in advance,

 

Edwin

Share this post


Link to post
Share on other sites

Hi,

 

What do you mean by "add up the calues of an array"? Do you wish to sum all the values of an array?

If this is the case then of course you can write a simple logic that loads each time a value from the array according to offset and add it to some integer.

 

What is the operation NOT for an integer? what shoud be the result?

If you wish to toggle all the bits of the integer you can use the utility XOR where A is the number and B should be FFFF.

Share this post


Link to post
Share on other sites

Yes, that is what I want to do. I have now done it with a formula. 

 

The NOT operation is to toggle all the bits, I have now done it by subtracting the value from FFFF. 

 

Thanks.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...