jifunks / botany

command line virtual plant buddy
ISC License
438 stars 32 forks source link

Round growth rate to single decimal #54

Closed noelleleigh closed 6 months ago

noelleleigh commented 7 months ago

At generation 8, the growth rate in the "look" message is displayed as:

2.4000000000000004x

To make it display "2.4x" instead, I used the format specification to display growth rate with only a single decimal place.