Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Cpp 側から QML 関数に送信された float と double をどのように比較しますか?
ここで述べたように、以下のような高精度の比較を行いたい場合
bool AreSame(double a, double b) { return fabs(a - b) < EPSILON; }
Qt QML でこれを行うにはどうすればよいですか?
それとも、QMLで実際にキャストされ、心配する必要はありませんか?