In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

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
19 - Altair
19 - Altair

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
20 - Arcturus

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.

Labels
Top Solution Authors