There is an implicit cast here, to double from qint64, and it isn't clear whether the implicit cast happens after the divide (with a potential truncate) or not.