Just FYI,
I now have this module working, with what look like sane values.
Your conversion function does work! it was my errors that were causing weird results. Many Thanks for the effort.
I now have a working class that supports the BME280 temp/humidity/pressure module.
I now need to work on the rest of the program....