dragome-sdk icon indicating copy to clipboard operation
dragome-sdk copied to clipboard

Valid support operation with long 64-bit java

Open nicolaichuk opened this issue 7 years ago • 1 comments

copy from https://github.com/dragome/dragome-sdk/issues/157

javascript work only with 32-bit value when used bitwise operation.

https://stackoverflow.com/questions/3081271/number-of-bits-to-represent-a-number

And used 53-bit value for other integer operation

https://stackoverflow.com/questions/17320706/javascript-long-integer

I do not sure about valid mirror operation with 64-bit long value between java and javascript code. Maybe need write same wrapper over java native long value.

nicolaichuk avatar Mar 03 '17 14:03 nicolaichuk

Yes, we can use something like https://github.com/peterolson/BigInteger.js, but it's not a small change for the compiler.

fpetrola avatar Mar 03 '17 15:03 fpetrola