If it is a value between 0 and 1, multiply my 255 and round down.
If it is a hexadecimal value, then you can use my base to base converter to convert it to decimal.
You can find it
Here.
It's a very compact script, and does more than just hexadecimal conversions.
BTW, slider always adds decimal places, that's normal.
If you want the slider to snap to whole numbers, try setting the ticks to 254 or 253 and turning snap on.