You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With regard to arduino/ArduinoCore-avr#406,
I found out that the C macro defined in our Arduino.h, flips the signedness of 0.0F to -0.0F. I think it would be more natural, if one has to make a choice, to let the error (if it is considered as such) be such that abs() returns (negative) -0.0F for the input (negative) -0.0F but not flips the signedness of the positive 0.0F.
MCVE, abstest is an identical copy of the abs() macro in Arduino.h:
With regard to arduino/ArduinoCore-avr#406,
I found out that the C macro defined in our
Arduino.h
, flips the signedness of 0.0F to -0.0F. I think it would be more natural, if one has to make a choice, to let the error (if it is considered as such) be such that abs() returns (negative) -0.0F for the input (negative) -0.0F but not flips the signedness of the positive 0.0F.MCVE, abstest is an identical copy of the
abs()
macro inArduino.h
:Output:
The text was updated successfully, but these errors were encountered: