Bug? Variable as float MOD error.

John Sturt

Active Member
Licensed User
Longtime User
Hello i found this today.

B4X:
'This code produces a very nasty error code.
  
   Dim VariableA As Float
  
   VariableA = (VariableA + 1) mod 5
  
   'The solution is
   Dim VariableA As Int
  
   'Not really a bug just a very unfriendly error code.
  [\CODE]
 

ilan

Expert
Licensed User
Longtime User
i still get that error msg and cannot build my app. has this error already been fixed?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…