dimanche 31 juillet 2016

Again problems with 64-Bit-Integers

Hi!

I don't want to annoy you. But I'm still having big problems with the 64-bit-integers in B4A.
Please try following code:

Code:
  Sub Activity_Create(FirstTime As Boolean)
Dim q As Long
Dim q2 As Long
Dim q3 As Long

q =
7782220156096217002
q2 =
2
q3 = q / q2

Log (q3)
Return
End Sub
The result should be: 3891110078048108501 (you can test it in Windows-calculator).
But B4A/Java returns: 3891110078048108544 (many bits were set to 0 ?! ...:...

Again problems with 64-Bit-Integers

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/2ahrKiP
via IFTTT

Aucun commentaire:

Enregistrer un commentaire