When you assign the value to different data type, you will get this type of error message : “Assignment or comparison loses precision”
For example:
int x = 10;
real y;
y = x;
To solve this issue, we can use the functions like any2real, any2int, any2str
y = any2real(x);