The result of the multiplication will probably be an integer before being converted to quint64, so overflow is expected.
The traditional way is to cast the int to double -- and hope that double is big enought for the result...:
quint64 myResult = (quint64)((double)myIntVal * myDoubleVal);




Reply With Quote

Bookmarks