Przykład
public
class
ClassA {
int
i;
public void
methodA {
float
f=Math.round((
float
)i);
}
}
Rozwiązanie
Usuń wywołanie Math.round() i rzutuj zmienną i na typ float.
public
class
ClassA {
int
i;
public void
methodA {
float
f=(
float
)i;
}
}