'Rounding Math Equations
How can I make my conversion of Celsius to Fahrenheit line of show string round to the tenth? My current output prints out with a ton of zeros at the end.
def on_forever():
basic.show_string("" + (input.temperature() * 1.8 + 32))
basic.show_string("F")
basic.forever(on_forever)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
