Example
public
class
ClassA {
int
i;
public void
methodA {
float
f=Math.round((
float
)i);
}
}
Solution
Remove the Math.round() and simply cast i to float.
public
class
ClassA {
int
i;
public void
methodA {
float
f=(
float
)i;
}
}