This goes in your console :

while ( num. slice ( dec , num. length ) . length < 4 ) num += '0' ; //adds trailing 0s (if needed) to stop the numbers jumping around.