I got it working,
I used floor to round down the data.
thanks