JavaScript only knows about numbers which are floats.
You can use parseInt
to parse that string into an integer.
It really is going to be a float
but without a fraction.
Either pass the radix 16
or let JavaScript autodetect it:
parseInt("0xFF", 16)
parseInt("0xFF")