cplex.getvalue(x) return float value, and when I put the value in int, it's different from the initial one. Is there a better way to accessing the integer variable's value?

Now I just use a naive way and I don't know whether it's right or not

```
val = cplex.getObjValue() + 0.1;

 for (int i = 0; i < n; i++)
   returnX[i] = cplex.getValue(x[i]) + 0.1;

```