Git Product home page Git Product logo

Comments (8)

m1ga avatar m1ga commented on June 27, 2024

Not have any solution here but I've set a breakpoint in the send method and I can see that the parameter that is passed to that method is already a double:
Bildschirmfoto_20240611_093807

from titanium-sdk.

Informate avatar Informate commented on June 27, 2024

Not have any solution here but I've set a breakpoint in the send method and I can see that the parameter that is passed to that method is already a double: Bildschirmfoto_20240611_093807

Thanks for your great support, maybe the problem occurs even then when the object attribute is set? Can you confirm that you initially see the number correctly, and that it is not the debugger doing the conversion incorrectly?

from titanium-sdk.

m1ga avatar m1ga commented on June 27, 2024

yes, I'm setting 12345678901 as a value (or Date.now()).

from titanium-sdk.

Informate avatar Informate commented on June 27, 2024

yes, I'm setting 12345678901 as a value (or Date.now()).

It seems to be Date.now() being cast to Double instead of Long then (Inside Java I suppose). But is working correctly when returned by Date.now() as toString() is doing right.

from titanium-sdk.

m1ga avatar m1ga commented on June 27, 2024

correct. But it's all long numbers. With to String it will be a string so it doesn't need to convert it. But I don't know at which point the conversion is

from titanium-sdk.

Informate avatar Informate commented on June 27, 2024

correct. But it's all long numbers. With to String it will be a string so it doesn't need to convert it. But I don't know at which point the conversion is

No, the Debugger is doing wrong!! :-/
It's not only send, but also the alert function called with Date.now() to rise the error!
I suppose that: If the toString conversion is done at JS level is ok, while if done at Java level is wrong!

from titanium-sdk.

m1ga avatar m1ga commented on June 27, 2024

I suppose that: If the toString conversion is done at JS level is ok, while if done at Java level is wrong!

I don't think it is doing a toString in Java as it still shows it as a number (double as you can see in the debug screenshot). But still: not a long as it should be.

from titanium-sdk.

Informate avatar Informate commented on June 27, 2024

I knew that JS try to fit all the datatypes in one putting pointers and other into the NaN space, but the long should not fit into a double NaN space. So I do not know what's happening...

from titanium-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.