NeoTechni Well-Known Member Licensed User Longtime User Sep 2, 2011 #1 In VB, x\y is basically floor(x/y)
agraham Expert Licensed User Longtime User Sep 3, 2011 #2 Basic4android uses "Mod" for the \ operator http://www.b4x.com/forum/bugs-wishlist/7678-mod-documentation.html#post43601
Basic4android uses "Mod" for the \ operator http://www.b4x.com/forum/bugs-wishlist/7678-mod-documentation.html#post43601
NeoTechni Well-Known Member Licensed User Longtime User Sep 3, 2011 #3 agraham said: Basic4android uses "Mod" for the \ operator http://www.b4x.com/forum/bugs-wishlist/7678-mod-documentation.html#post43601 Click to expand... Are you sure? In VB they are separate things. In VB mod is the remainder: X-(floor(X/Y)*Y)
agraham said: Basic4android uses "Mod" for the \ operator http://www.b4x.com/forum/bugs-wishlist/7678-mod-documentation.html#post43601 Click to expand... Are you sure? In VB they are separate things. In VB mod is the remainder: X-(floor(X/Y)*Y)
agraham Expert Licensed User Longtime User Sep 3, 2011 #4 You are correct! It is years since I did any VB and was wrongly equating the % modulus operator in C#/Java with \ in VB. There isn't an integer division operator in Java so there isn't one in Basic4android. In Java/C# you achieve the same effect by casting the result of a division to an int or by using integer types for the division,
You are correct! It is years since I did any VB and was wrongly equating the % modulus operator in C#/Java with \ in VB. There isn't an integer division operator in Java so there isn't one in Basic4android. In Java/C# you achieve the same effect by casting the result of a division to an int or by using integer types for the division,