S sorex Expert Licensed User Longtime User Dec 12, 2016 #1 for some reason the parser is freaking out on this line that works fine in B4A... B4X: If x Mod Sqrt(ls)=Sqrt(ls)-1 Then t=t & CRLF it expect that the mod value is of an int type. the square root of those values are valid INTs tho so it should just compile as is. currently avoided by bit.parseInt-ing the sqr(ls) value. Last edited: Dec 12, 2016
for some reason the parser is freaking out on this line that works fine in B4A... B4X: If x Mod Sqrt(ls)=Sqrt(ls)-1 Then t=t & CRLF it expect that the mod value is of an int type. the square root of those values are valid INTs tho so it should just compile as is. currently avoided by bit.parseInt-ing the sqr(ls) value.
Erel B4X founder Staff member Licensed User Longtime User Dec 13, 2016 #2 The modulo value in B4i must be an Int. B4X: Dim m As Int = Sqrt(ls) If x Mod m = m - 1 Then t = t & CRLF Upvote 0
The modulo value in B4i must be an Int. B4X: Dim m As Int = Sqrt(ls) If x Mod m = m - 1 Then t = t & CRLF