int tol = 50;
// int tol = analogRead(5)/4;

// check if the difference is in the tolerance else change horizontal angle
if (-1*tol > dhoriz || dhoriz > tol)
New contributor
Remianne Cherisol is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

closed as off-topic by jsotola, sempaiscuba, VE7JRO, per1234, Juraj Jan 11 at 5:56

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question does not appear to be about Arduino, within the scope defined in the help center." – jsotola, sempaiscuba, VE7JRO, per1234, Juraj
If this question can be reworded to fit the rules in the help center, please edit the question.

  • because you put it there? but seriously, tol is tolerance - and often one checks for +/- tolerance – Jaromanda X Jan 10 at 22:20
  • A number multiplied by -1 gives you negative the same number. Surely you covered that in elementary/primary school? – Majenko Jan 10 at 22:22
  • how is it that you do not understand your own code? ..... your question is not related to the Arduino .... it is not a C++ question ..... it is an arithmetic question – jsotola Jan 10 at 23:18
  • I'm learning coding in highschool for a project my teacher isn't helping for. that is all and it is not my code i'm trying to understand it so I can make an another. Thank you for understanding...I'm new on this site and you are acting rudely – Remianne Cherisol yesterday

Browse other questions tagged or ask your own question.