浮動小数点型
「浮動小数点型」の英語
「浮動小数点型」は英語で floating-point type と言います。値そのものは floating-point number、プログラミング言語の型名や宣言では float と呼ぶこともあります。
「浮動小数点型」の英語の使い分け
floating-point type
数値を扱うデータ型を指す、技術文書や仕様書で使う表現です。
型ではなく、実際に保存・計算される浮動小数点数を指します。
The result is a floating-point number.
プログラミング言語で型名として使われる、短く一般的な表現です。
コアイメージ
コンピュータで実数を有限桁で表し、小数点位置が変動する数表現
英英
A numeric representation used by computers to approximate real numbers with a fixed number of significant digits and a movable radix point, causing rounding and precision limitations.
語源
floating-point numberは、小数点の位置が可変であることを示すfloatingと数を表すnumberの組み合わせで、計算機で有効桁と指数を用いて実数を表す表現から生じた用語。
コラム
- 浮動小数点数は丸め誤差で等価比較が期待通りにならないことがあるため、プログラミングでは単精度(float)や倍精度(double)を意識しつつ許容誤差で比較することが一般的である
「浮動小数点型」のレベル別の例文
「浮動小数点型」を英語にするときのよくある間違い
× The value is a floating-point type.
○ The value is a floating-point number.