Dropping the '.00' when printing floats that hold whole numbers
- by navycoolguy
I'm currently displaying a quantity in Javascript. I want it to display (for example) the whole number as 89 instead of 89.00; however, if the number is fractional like 89.50 then it should display 89.50