@Hot_Dog: is there any chance the input number could be in hex rather than Decimal to make it match the chart?
Done. The compiler attached takes numbers as hex instead of decimal.
I also optimized and cleaned some stuff up. You'll have to compile it though.
EDIT: Rename it bmp28xp, of course.
I should probably include this one in the final version to replace the old one. Qwerty's right, it's much easier to look at the table and input a value rather than convert, especially for newer users