2017-07-12 12:00 GMT+02:00 Konrad Rosenbaum <kon...@silmor.de>:

> On Wed, July 12, 2017 11:53, Shantanu Tushar wrote:
> > and I see this output-
> >
> > qml: Opening 5762702576189441
> > Opening 5762702576189442
> >
> > As you can see the number changes. What am I doing wrong?
>
> ...you are using JavaScript numbers. All numbers is JS are 32bit floats,
> so naturally when you get to high numerical values you lose precision.
>

That's 64bits actually. For integers you're safe up to (2^53 -1), so the
OP's value should be ok as it's below that value.

Ilya.
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to