Skip to content

Conversation

@teruyamato0731
Copy link
Contributor

@teruyamato0731 teruyamato0731 commented Jan 10, 2026

問題点

  • cmathのcopysignsignbitについて、NaNについての挙動が言及されているが、例ではNaNやinfinityなどの値に対して、どのように振る舞うのか示されていなかった。
  • signbitではNaNの符号を検出できる移植性のある方法として、copysignを示していたが、copysignではsignbitに言及されていなかった。

加えた変更

  • copysignの備考にsignbitについての記述を追加しました。
  • copysignの例にinfやnanの例を追加しました。
  • signbitの例にinfやnanの例を追加しました。

@github-actions
Copy link
Contributor

github-actions bot commented Jan 10, 2026

プレビュー (HTML) (更新時刻: 2026-01-12 11:30:48 JST)

  • Commit: d3c1b23
  • プレビューの生成には時間がかかります (3~5分)。進捗状況はこちらをご確認ください。

変更記事一覧

3件の記事が変更されました。

※ソース (.md) に直接変更のあった記事を列挙しています。グローバル修飾や変換規則の変更による変化は考慮していません。

@teruyamato0731
Copy link
Contributor Author

問題がなければマージしたいと思います。
どなたかレビュー頂けますか?

@teruyamato0731
Copy link
Contributor Author

@onihusube このような形でいかがでしょうか?

@teruyamato0731 teruyamato0731 force-pushed the feat/cmath-copysign-signbit branch from fc491d3 to d3c1b23 Compare January 12, 2026 02:26
Copy link
Member

@onihusube onihusube left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM👍

@teruyamato0731 teruyamato0731 merged commit 48403c2 into master Jan 12, 2026
20 checks passed
@teruyamato0731 teruyamato0731 deleted the feat/cmath-copysign-signbit branch January 12, 2026 03:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants