How do I round hexadecimal floating point numbers

870 Views Asked by At

I am trying to round hexadecimal floating point numbers, but I do not know the general rule on when round it to the lower number and when to round it to the higher number? What is the threshold for hex numbers

for eg: rounding 0X3.8 will be 0X4 or 0X3?