Skip to content

Commit

Permalink
Update converter.pyw
Browse files Browse the repository at this point in the history
  • Loading branch information
Bbenii1 committed Nov 13, 2023
1 parent 2c7b4bb commit 974a7f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions converter.pyw
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ class App():
def convert(self):
converted = float(self.temp_unit_input.get())
if self.temp_unit.get() == 'C°':
self.output.config(text= '{:.1f}' .format(converted * 1.8 + 32))
self.output.config(text= '{:.1f} °F' .format(converted * 1.8 + 32))
elif self.temp_unit.get() == '°F':
self.output.config(text= '{:.3f}' .format((converted - 32) / 1.8) )
self.output.config(text= '{:.3f}' .format((converted - 32) / 1.8) )


if __name__ == '__main__':
Expand Down

0 comments on commit 974a7f1

Please sign in to comment.