More advanced examples:
Round a value to one decimal place
If you only need a single decimal place, just enter 1 in the toFixed function
Round a value to n decimal places
However many decimal places you need: just replace n with the number you need in the toFixed function.