2017-07-13 8:03 GMT+02:00 Shantanu Tushar <[email protected]>:

> Thanks for the reply everyone, so the takeaway is so always store 64-bit
> ints as strings in JavaScript, I'll start making that change in our
> codebase.
>
> However, I'm still curious on how `console.log` got the output right and
> it the precision loss only happened when it went from QML/JS to C++ . Any
> idea?
>

My best guess: the C++ code is doing some dark magic qint64 <=> double
conversion that saves a bunch of nanoseconds but sacrifices 1 bit of
precision.

Ilya.
_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to