Skip to content

abs() functions should always return a positive value #363

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

amitabhkant
Copy link

No description provided.

@robsoncouto
Copy link
Contributor

Hi @amitabhkant , if x is less than zero, abs() should return the negative of that. As the negative of a negative value, which is positive.

@amitabhkant
Copy link
Author

Oh.. My bad ... I was not reading the documentation correctly then..

@amitabhkant amitabhkant deleted the patch-1 branch May 13, 2018 18:12
@robsoncouto
Copy link
Contributor

No problem at all. Thanks for your interest in contributing to the Arduino reference!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants