Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

The sum of positive and negative numbers does not equal zero.

Nico67543
7 - Meteor

Hi all, 

The sum of these two number isn't equal to 0. It equal to 4.07453626394272E-10, why was that happened?

1.jpg

3.jpg

2.jpg

  

3 REPLIES 3
alexnajm
17 - Castor
17 - Castor

Your data must have some underlying decimal places! You can use a Round function to get it to 0 - something like Round([External]+[SE26],0.01)

caltang
17 - Castor
17 - Castor

That's how precise it gets. Your decimal places are quite precise - I would recommend to do your formula first, then at the end, use the Multi-Field tool to change the data type to fixed decimal, 19.0 to get it down if it helps. 

 

If you round and do your formulas, you may end up with E.C.F. - error carried forward.

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
apathetichell
19 - Altair

A double is a number stored as a fraction. On larger numbers (with decimals) it can be quite dififcult to get standard addition/subtraction to equal to 0. I'd recmmend swapping to fixed decimal 19.6.

Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Labels