Breaking down a long math calculation

Ahh, my bad on that, it was late sorry. The following will work for you, assuming that totalRate is a percentage in decimal form.

totalRate = 0.0564545435;
aprPrecentage = (totalRate * 100).toFixed(2);

There are a few different ways of using it. The toFixed function is a part of the Number object. The toFixed function gives a string version of the number, so that some formatting can be applied. The argument that you give to toFixed says to how many decimal places the string version of should be shown as.