https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97086

--- Comment #2 from m farazma <mfarazma.ext at gmail dot com> ---
Wanted to point out the same happens when using "nearbyint":
```
#include <iostream>
#include <math.h>

int main(){
 std::cout << nearbyintf(-0) << std::endl;
 return 0;
}
```
expected: -0
actual: 0

https://en.cppreference.com/w/c/numeric/math/nearbyint
Above url clearly mentions "If arg is ±0, it is returned, unmodified".

Reply via email to