gjoisa Active Member Licensed User Longtime User Aug 19, 2019 #1 this is happening in new version . while converting big numbers from string to int wrong output is shown . Is it a bug ? B4X: Dim i,j,k As String Dim c,d As Int i = "7109432105423567" j = "81245" c = i d = j Log(c) Log(d) the result shown is 2147483647 and 81245 .
this is happening in new version . while converting big numbers from string to int wrong output is shown . Is it a bug ? B4X: Dim i,j,k As String Dim c,d As Int i = "7109432105423567" j = "81245" c = i d = j Log(c) Log(d) the result shown is 2147483647 and 81245 .
DonManfred Expert Licensed User Longtime User Aug 19, 2019 #2 gjoisa said: Is it a bug ? Click to expand... No. I´m sure it was the same case in older Versions. gjoisa said: i = "7109432105423567" Click to expand... Max value for int is 2,147,483,647 resp "2147483647". All greater values must be stored in another object. Long for ex. Last edited: Aug 20, 2019 Upvote 0
gjoisa said: Is it a bug ? Click to expand... No. I´m sure it was the same case in older Versions. gjoisa said: i = "7109432105423567" Click to expand... Max value for int is 2,147,483,647 resp "2147483647". All greater values must be stored in another object. Long for ex.