Jun-23-2020, 11:36 PM
Just to close this thread - I used the following code and now things are formatting properly -
Help provided by a knowledgeable local friend -
bmpPress = bmp280.read_pressure()/1000 Pressin = bmpPress* .29530 print 'Pressure = \t{0:0.2f} in'.format(Pressin)The pressure being read in as an integer not a floating point number. So you have to convert it hence divide by 1000.
Help provided by a knowledgeable local friend -