Is this bug or I'm missing something in latest official release of B4i and in latest beta from few days ago.
B4X:
Dim test1 As Long = 1000 * 60 * 60 * 24 * 130 ' wrong
Dim test2 As Long = 1000 * 60 * 60 * 24 * 120 ' wrong
Dim test3 As Long = 1000 * 60 * 60 * 24 ' correct
Dim test4 As Long = test3 * 130 ' correct
Dim test5 As Long = 1000 * 60 * 60 * 24 * 124 ' wrong
Dim test6 As Long = 1000 * 60 * 60 * 24 * 125 ' wrong
Log ("Test1: " & test1) ' Test1: -1652901888 should be: 11232000000
Log ("Test2: " & test2) ' Test2: 1778065408 should be: 10368000000
Log ("Test3: " & test3) ' Test3: 86400000
Log ("Test4: " & test4) ' Test4: 11232000000
Log ("Test5: " & test5) ' Test5: 2123665408 should be: 10713600000
Log ("Test6: " & test6) ' Test6: -2084901888 should be: 10800000000
Last edited: