Skip to content

ABS() documentation is incorrect #597

Closed
@thearduinoguy

Description

@thearduinoguy

https://www.arduino.cc/reference/en/language/functions/math/abs/

Page states:

Returns
x: if x is greater than or equal to 0.
-x: if x is less than 0.

This is incorrect. If x is less than zero it will return the positive value of X. The page seems to imply that ABS has no affect on any integer.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions