Fractions and Decimals
Thanks so much!
1/2 returns 0.5
(number).toFixed(n) returns the number formatted to a string with n decimal places
(1/2).toFixed(1) returns '0.5'
To remove the zero you'll need to use string.replace()-
// returns '.5'
Thanks so much. I knew that there had to be something available...