Since I compile my application I have this error :
Compiling debugger engine code. Error
B4A line: 1827
For i = 0 To Round(Longy) Step pas
javac 1.7.0_25
\pro\main_subs_0.java:1131: error: possible loss of precision
final int step1672 = (double) (_pas.<Integer>get().intValue());
^
required: int
found: double
1 error
In Basic4Android 2.71 there is no error ....
B4X:
Dim Longy as Double
Longy = 15.2
Dim pas As Int
If Longy < 10 Then pas = 2
If Longy < 20 Then pas = 3
If Longy < 30 Then pas = 5
If Longy > 30 Then pas = 5
For i = 0 To Round(Longy) Step pas 'ERROR
....
Compiling debugger engine code. Error
B4A line: 1827
For i = 0 To Round(Longy) Step pas
javac 1.7.0_25
\pro\main_subs_0.java:1131: error: possible loss of precision
final int step1672 = (double) (_pas.<Integer>get().intValue());
^
required: int
found: double
1 error
In Basic4Android 2.71 there is no error ....