float, in modern systems, is a 32 bit floating point type.
double, in modern systems, is a 64 bit floating point type.
The accuracy of a float is much less than a 64 bit floating point, but is still very useful for speed and because it occupies less bytes of ram.
Now with 64 bit system the difference between float and double are a lot less noticeable, but in the past, they could be really different.
常にパフォーマンスと精度の間のトレードオフを見つけなければなりません: double と float の選択はまさにこれです: 高精度または低精度でより良いパフォーマンスが必要ですか?
通常、3D ゲームでは float を使用し、微積分アプリケーションでは通常 double を使用します。
double の精度があなたに合っているかどうかを確認してください。そうでない場合は、C++ ライブラリで abritrary 精度の数値を検索することをお勧めしますが、パフォーマンスについての議論を続けるために、このオブジェクトのパフォーマンスは、ネイティブの double または float と比較して非常に悪いです.