It is depends on how you want to use this number and how accurate you want it to be.
For example if you want to change the position of something exactly by 2 pixels then you need to round it, otherwise it is not that important as long you get the result you expect.