Add float to main percentage

Prior to this commit we converted the float to an int, we now
leave it as a float and also count the dec places on the node
Fix formatting of percentages

Prior to this we did not calculate the correct spacing