Converted the first pow(2,23) operation into a proper integer division operation, and moved the tempC calculation to the end so that it is properly adjusted.