mirror of
https://github.com/bitwiseworks/gcc-os2.git
synced 2026-02-14 22:24:49 +00:00
std::nearbyint returns nan for any argument
#35
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dmik on GitHub (Sep 11, 2020).
Originally assigned to: @dmik on GitHub.
std::nearbyintis a modern rounding function in C++.This following program:
outputs
127 naninstead of127 127for some reason.Note that any other double instead of 127 results in
nanas well.Spotted here: https://github.com/bitwiseworks/qtwebengine-chromium-os2/issues/21#issuecomment-691239455.
@dmik commented on GitHub (Sep 11, 2020):
Well, C++ just forwards these calls to libc, so it should be fixed there. Created https://github.com/bitwiseworks/libc/issues/87 and will close this one.
I spotted another problem though. An attempt to include fails with multiple errors. Created #31 for it.