is there some method in the math class (or any class for that matter) that could calculate hexadecimal inputs?