エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
Bug #12548: Rounding modes inconsistency between round versus sprintf - Ruby master - Ruby Issue Tracking System
記事へのコメント2件
- 注目コメント
- 新着コメント
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
Bug #12548: Rounding modes inconsistency between round versus sprintf - Ruby master - Ruby Issue Tracking System
I doubt if this is a bug or not. The rounding mode you describe is so-called "round to the neares... I doubt if this is a bug or not. The rounding mode you describe is so-called "round to the nearest even" which is described in ISO 31-0 as "generally preferable". Maybe the author of sprintf explicitly chose such mode (not sure). It seems the problem here is whether should we specify sprintf's rounding mode or leave it implementation-defined.
2017/01/03 リンク