You should be able to do binVal.toString(16) to get the hexadecimal value.
However, I think(!) the intermediate result is too large to fit in a regular integer.
You should be able to do binVal.toString(16) to get the hexadecimal value.
However, I think(!) the intermediate result is too large to fit in a regular integer.