Lines 340-343: 

Are you simply trying to round and truncate? `1.62345` => `1.6`? If so, use `toFixed(1)`.